← Docs
kotlin-stdlib / kotlin / UShortArray / set

set

Common
JVM
JS
Native
1.0
operator fun set ( index : Int , value : UShort )
(source)

Sets the element at the given index to the given value . This method can be called using the index operator.

If the index is out of bounds of this array, throws an IndexOutOfBoundsException except in Kotlin/JS where the behavior is unspecified.

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