getBit

fun getBit(index: Int): Int

Returns the bit at the specified index, yielding 0 or 1.

Return

the bit at the specified index

Parameters

index

the index to get the bit at

Throws

if index < 0 or index ≥ bitLength