Logo

Programming-Idioms

History of Idiom 38 > diff from v17 to v18

Edit summary for version 18 by :

Version 17

2015-08-26, 21:10:39

Version 18

2015-09-03, 15:30:12

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 = drop i (take j s)