bit_array_is_set


bit_array_is_set(b, n)
      

Return true if the nth bit is on in the bit arrays b, return false otherwise.

Examples:


let b = #b[0, 1, 1, 0, 1]
bit_array_is_set(b, 1)
// true
bit_array_is_set(b, 3)
// false
      

Also see:

bit_array_set
bit_array_is_all_set


Core Module Index | Contents