Logo

Programming-Idioms

History of Idiom 41 > diff from v22 to v23

Edit summary for version 23 by :
New Scala implementation by user [meshelton]

Version 22

2016-02-16, 18:45:59

Version 23

2016-02-16, 21:59:14

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()