Kotlin v1.4.32
  • Solutions
    • Multiplatform Mobile ↗
    • Server-side ↗
    • Web frontend
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
← Docs
kotlin-stdlib / kotlin.native / BitSet / previousClearBit

previousClearBit

Native
1.3
fun previousClearBit(startIndex: Int): Int

Returns the biggest index of a bit which value is false before startIndex (inclusive). Returns -1 if there is no such bits before startIndex or if startIndex == -1. If startIndex >= size will return startIndex assuming that the set has an infinite sequence of false bits after (size - 1)-th.

Exceptions

IndexOutOfBoundException - if startIndex < -1.

  • GitHub logo
  • Twitter logo
  • Slack logo
  • Reddit logo
  • Stack Overflow logo
  • Stack Overflow logo
Contributing to Kotlin Releases Press Kit Security Blog Issue Tracker
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license. Supported and developed by JetBrains
Supported and developed by JetBrains
esc