Methods
[]
ΒΆ
[](s:
Str
, range:
NumRange
)
Get substring
Example
"abcd"[1..3] # "bc"
[](s:
Str
, r:
NumRange
)
Get a substring. Indexes in s are specified by NumRange.
Source:
stdlib.ngs:2350
s
Original string
r
NumRange with negatve .end
Returns
Str
Example
"(Look ma, no parens)"[1..-1] # "Look ma, no parens"