History of Idiom 41 > diff from v57 to v58
Edit summary for version 58 by daxim:
[Perl] complete overhaul
[Perl] complete overhaul
↷
Version 57
2019-09-27, 20:51:02
Version 58
2019-09-29, 18:43:33
Idiom #41 Reverse a string
Create string t containing the same characters as string s, in reverse order.
Original string s must remain unaltered. Each character must be handled correctly regardless its number of bytes in memory.
Idiom #41 Reverse a string
Create string t containing the same characters as string s, in reverse order.
Original string s must remain unaltered. Each character must be handled correctly regardless its number of bytes in memory.
Comments bubble
This snippet will be deleted soon
Comments bubble
As of 2019-09-29, all other solutions are wrong AFAICT with respect to Unicode marks. (Dart has a disclaimer.)
Correct result: "e\N{U+0301}fac"
Wrong result: "\N{U+0301}efac"