Logo

Programming-Idioms

History of Idiom 41 > diff from v23 to v24

Edit summary for version 24 by :
[Scala] Incorrect

Version 23

2016-02-16, 21:59:14

Version 24

2016-02-16, 21:59:36

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.

Code
"SomeString".reverse()
Code
"SomeString".reverse