constructor for given length
destructor
post-blit that does a full copy
number of elements this structure can hold without further allocations
count number of elements equal to v
check for emptiness
number of elements
number of limbs in use
returns limbs in use
indexing
make sure this structure can contain given number of elements without further allocs
set all elements to false
either cuts of or fills new elements with false
toggle element i, returns old value.
Efficient version of Array!bool using only one bit per entry. But note that the interface is not compatible with Array!bool. In particular no ranges are provided. This is a design choice because using a bit-range in general algorithms is often very inefficient. In contrast specialized algorithms working on BitArray are typically very fast.