subs
(subs s start end?)
(subs s start end?) — return the substring of s from character index start up to (excluding) character index end; with two arguments end defaults to the character length of s. Indexes count characters, not bytes: (subs "你好世界" 1 3) => "好世". start equal to the length yields the empty string; a bound beyond the length is the typed index-out-of-bounds error carrying the length; a negative bound or end before start is rejected. Examples: (subs "hello" 1 3) => "el"; (subs "hello" 2) => "llo". A non-string or non-integer argument is a typed rejection.