bit_array_clear


bit_array_clear(b, n)
      

Turn the nth bit off in the bit array b. Return void.

Examples:


let b = bit_array(1, 0, 0, 1, 1)
b          
// #b[1, 0, 0, 1, 1]

bit_array_clear(b, 0)
b
// #b[0, 0, 0, 1, 1]

b[3] = false
b
// #b[0, 0, 0, 0, 1]
      

Also see:

bit_array_set
bit_array_set_all
bit_array_clear_all


Core Module Index | Contents