klyn.String.lastIndexOf
method
public lastIndexOf(value as Char, start as Long = -1) as Long
Description

Finds the last occurrence of a Unicode character.

Parameters
ParameterDescription
valueCharacter to find, including supplementary scalars or U+0000.
startLast scalar index to search; negative values search from the end.
Returns

Scalar index of the last occurrence, or -1 if absent.

Example
assert "banana".lastIndexOf('a') == 5