Logo

Programming-Idioms

History of Idiom 41 > diff from v7 to v8

Edit summary for version 8 by :

Version 7

2015-08-20, 15:47:19

Version 8

2015-08-20, 16:35:18

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;
Imports
import std.range;
Code
auto s = "abc".retro;
Code
auto s = "The key to learning D is to 脚踏实地".retro;
Demo URL
http://dpaste.dzfl.pl/eeb984cbd621