get

Common
JVM
JS
Native
1.0
fun get(index: Int): Char
(Common source) (JS source) (Native source)
For Common, JVM, JS

Returns the character of this string at the specified index.

If the index is out of bounds of this string, throws an IndexOutOfBoundsException except in Kotlin/JS where the behavior is unspecified.

For Native

Returns the character of this string at the specified index.

If the index is out of bounds of this string, throws an IndexOutOfBoundsException.