W3cubDocs

/Kotlin

set

Platform and version requirements: Native (1.3)
fun set(index: Int, value: Boolean = true)

Set the bit specified to the specified value.

Platform and version requirements: Native (1.3)
fun set(from: Int, to: Int, value: Boolean = true)

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

Platform and version requirements: Native (1.3)
fun set(range: IntRange, value: Boolean = true)

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

© 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.native/-bit-set/set.html