v1.9.10
  • Solutions
    • Multiplatform
    • Server-side
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin.text / StringBuilder / set

set

JS
Native
1.3
operator fun set(index: Int, value: Char)
(JS source) (Native source)

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

Exceptions

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

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains