W3cubDocs

/Kotlin

set

Platform and version requirements: JVM (1.0)
operator fun StringBuilder.set(index: Int, value: Char)

Sets the character at the specified index to the specified value.

Exceptions

IndexOutOfBoundsException - if index is out of bounds of this string builder.

© 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/java.lang.-string-builder/set.html