bit_array_is_set(b, n)
Return true if the nth bit is on in the bit arrays b, return false otherwise.
true
n
b
false
let b = #b[0, 1, 1, 0, 1] bit_array_is_set(b, 1) // true bit_array_is_set(b, 3) // false
Core Module Index | Contents