get

Platform and version requirements:
operator fun get(index: Int): Char
Platform and version requirements: JS (1.1)
fun get(index: Int): Char

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.

© 2010–2022 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.text/-string-builder/get.html