klyn.MutableString.operator[]
method
public operator[](position as Long) as Char
Description

Returns the Unicode scalar at an index; negative indices count from the end.

Parameters
ParameterDescription
positionZero-based or negative index.
Returns

The indexed character.

Throws
  • IndexException if the index is outside the text.
Example
assert m"Klyn"[-1] == 'n'