Logo

Programming-Idioms

History of Idiom 38 > diff from v4 to v5

Edit summary for version 5 by :

Version 4

2015-08-20, 06:58:58

Version 5

2015-08-20, 09:57:46

Idiom #38 Extract a substring

Find substring t consisting in characters i (included) to j (excluded) of string s.
(character indexes start at 0 unless specified otherwise)

Idiom #38 Extract a substring

Find substring t consisting in characters i (included) to j (excluded) of string s.
(character indexes start at 0 unless specified otherwise)

Code
let t=s[i,j].to_string();