Product Type
BitArray
An array of bit values represented as Booleans, where true indicates that the bit is on.
Members
Functions
fun capacity() -> Int
Returns the number of bits that the array can contain before allocating new storage.
fun append(_ bit: Bool) { inout }
Adds a new element at the end of the array.
fun set_value(_ b: Bool, for p: Position) { inout }
Sets the value b for the bit at position p.
Initializers
init()
Creates an empty array.