Logo

Programming-Idioms

History of Idiom 38 > diff from v10 to v11

Edit summary for version 11 by :

Version 10

2015-08-22, 00:24:25

Version 11

2015-08-22, 02:20: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)

Code
t := s[i+1 .. j];
Comments bubble
assuming ansistring, so first character is at position 1. This artifact is due to the internal ref-counting payload.