klyn.String.operator[]
method

    public native operator[]( position as UInt ) as Char throws IndexException

Description

Returns or sets the character at the given position.

Parameters

Parameter | Description
--- | ---
`position` | Zero-based index.

Returns

The character stored at `position`.

Throws

- IndexException if position is outside the string bounds.

Example

    assert "Klyn"[0u] == 'K'