bitvector-jvm-0.1.4 / net.onedaybeard.bitvector / BitVector / forEachBit

forEachBit

inline fun forEachBit(f: (Int) -> Unit): Unit (source)

Enumerates over all true bits sequeneially. This function performs better than forEach and any other functions from Iterable<Int>.