History of Idiom 38 > diff from v41 to v42
Edit summary for version 42 by programming-idioms.org:
[Ruby] +DemoURL
[Ruby] +DemoURL
↷
Version 41
2016-10-19, 21:18:34
Version 42
2016-11-13, 23:03:43
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)
Comments bubble
s = "test"
t = "s[0..1] => "te"
Comments bubble
s = "test"
t = "s[0..1] => "te"