Logo

Programming-Idioms

History of Idiom 41 > diff from v19 to v20

Edit summary for version 20 by :
New Erlang implementation by user [elbrujohalcon]

Version 19

2015-11-30, 12:37:28

Version 20

2015-12-18, 03:06:54

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 = lists:reverse(S)
Doc URL
http://erldocs.com/current/stdlib/lists.html?i=0&search=lists:rever#reverse/1