klyn.String.indexOf
method
public indexOf(value as Char, start as Long = 0) as Long
Description

Finds the first occurrence of a Unicode character.

Parameters
ParameterDescription
valueCharacter to find, including supplementary scalars or U+0000.
startFirst scalar index to search; negative values clamp to zero.
Returns

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

Example
assert "banana".indexOf('a', 2) == 3