← Docs
kotlin-stdlib / kotlin.native / BitSet / set

set

Native
1.3
fun set ( index : Int , value : Boolean = true )
(source)

Set the bit specified to the specified value.

Native
1.3
fun set ( from : Int , to : Int , value : Boolean = true )
(source)

Sets the bits with indices between from (inclusive) and to (exclusive) to the specified value.

Native
1.3
fun set ( range : IntRange , value : Boolean = true )
(source)

Sets the bits from the range specified to the specified value.

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 .