Logo

Programming-Idioms

History of Idiom 38 > diff from v2 to v3

Edit summary for version 3 by :

Version 2

2015-07-31, 19:34:36

Version 3

2015-08-01, 17:11:00

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
t = s.substring(i, j);