nextSetBit

Native
1.3
fun nextSetBit(startIndex: Int = 0): Int

Returns an index of a next bit which value is true after startIndex (inclusive). Returns -1 if there is no such bits after startIndex.

Exceptions

IndexOutOfBoundException - if startIndex < 0.