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 Common, 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–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-string-builder/get.html