get

Platform and version requirements: JVM (1.0), JS (1.1), Native (1.3)
abstract operator fun get(index: Int): Char
For Common, JVM, 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.

© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/get.html