Logo

Programming-Idioms

History of Idiom 41 > diff from v6 to v7

Edit summary for version 7 by :

Version 6

2015-08-20, 10:04:15

Version 7

2015-08-20, 15:47:19

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.

Imports
import std.range;
Code
auto s = "abc".retro;