flip

fun flip(startIndex: Int, endIndex: Int)

Flips a range of bits

Parameters

startIndex

lower index

endIndex

one-past the last bit to flip


fun flip(index: Int)

Flip the bit at the provided index.