Logo

Programming-Idioms

History of Idiom 41 > diff from v46 to v47

Edit summary for version 47 by foobar:
New Lisp implementation by user [foobar]

Version 46

2019-09-26, 13:57:21

Version 47

2019-09-26, 15:20:48

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.

Illustration

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.

Illustration
Code
(reverse s)