Methods
[]
ΒΆ
[](s:
Str
, i:
Int
)
Get given character (currently byte) of the string
Source:
stdlib.ngs:2325
s
Original string
i
Index of the character to return
Example
"abc"[0] # "a"
[](s:
Str
, i:
Int
)
Get given character (currently byte) of the string. TODO: Document InvalidArgument exception.
Source:
stdlib.ngs:2336
s
Original string
i
Negative index of the character to return
Example
"abc"[-1] # "c"