Logo

Programming-Idioms

History of Idiom 38 > diff from v27 to v28

Edit summary for version 28 by :
[Go] typo

Version 27

2016-01-01, 00:18:06

Version 28

2016-01-01, 00:18:32

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[i,j]
Code
t := s[i:j]