Logo

Programming-Idioms

History of Idiom 38 > diff from v19 to v20

Edit summary for version 20 by :

Version 19

2015-09-05, 15:26:07

Version 20

2015-09-05, 15:26:26

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
String.slice(_string, _i.._j-1)
Code
String.slice(string, i..j-1)