flip

fun flip(index: Int)

Reverses the bit specified.

fun flip(from: Int, to: Int)

Reverses the bits with indices between from (inclusive) and to (exclusive).

fun flip(range: IntRange)

Reverses the bits from the range specified.