Logo

Programming-Idioms

History of Idiom 41 > diff from v16 to v17

Edit summary for version 17 by :

Version 16

2015-09-04, 12:07:58

Version 17

2015-09-05, 19:10:44

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
t s = reverse s :: String
Code
t = reverse s :: String