flip
Появилось в Kotlin: 1.3
fun flip(index: Int)
Инвертирует указанный бит.
fun flip(from: Int, to: Int)
Инвертирует биты с индексами между from (включительно) и to (не включая).
fun flip(range: IntRange)
Инвертирует биты в указанном диапазоне.
© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.native/-bit-set/flip.html