Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
set
fun set(index: Int, value: Boolean = true)
(source)
Set the bit specified to the specified value.
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.
Sets the bits from the range specified to the specified value.