Logo

Programming-Idioms

History of Idiom 46 > diff from v5 to v6

Edit summary for version 6 by :

Version 5

2015-08-20, 10:23:43

Version 6

2015-08-20, 17:20:09

Idiom #46 Extract beginning of string (prefix)

Create string t consisting in the 5 first characters of string s.

Idiom #46 Extract beginning of string (prefix)

Create string t consisting in the 5 first characters of string s.

Code
string t = s[0..5];