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

previousBit

Native
1.3
fun previousBit ( startIndex : Int , lookFor : Boolean ) : Int
(source)

Returns the biggest index of a bit which value is lookFor before startIndex (inclusive). Returns -1 if there is no such bits before startIndex . If startIndex >= size returns -1

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 .