get

Common
1.0
operator fun get(index: Int): Char
JS
Native
1.1
fun get(index: Int): Char
For JS

Returns the character at the specified index in this character sequence.

Exceptions

IndexOutOfBoundsException -

if the index is out of bounds of this character sequence.

Note that the String implementation of this interface in Kotlin/JS has unspecified behavior if the index is out of its bounds.

For Native

Returns the character at the specified index in this character sequence.

Exceptions

IndexOutOfBoundsException - if the index is out of bounds of this character sequence.