W3cubDocs

/Kotlin

get

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

© 2010–2020 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