This module implements efficient and compact arrays of boolean values. It stores its values in the bits of an integer, using multiple integers to allow for arrays larger than the machine word size. All operations are on immediates (no caml_modify), and are quite simple. Hence this data structure should be more efficient than an array of bools.
include Core.Sexpable with type t := tval t_of_sexp : Base.Sexp.t ‑> tval sexp_of_t : t ‑> Base.Sexp.tval get : t ‑> int ‑> boolget t pos get the value in position pos, raises Invalid_argument if the position
is out of bounds.
val set : t ‑> int ‑> bool ‑> unitset t pos set the value in position pos, raises Invalid_argument if the position
is out of bounds.
val fold : t ‑> init:'a ‑> f:('a ‑> bool ‑> 'a) ‑> 'afold t ~init ~f Fold over the array as in Array.fold