Util.Bits
A minimalistic bitset data structure.
type t
Represents a bitset.
val create : unit -> t
create () returns a new zero length bitset.
create ()
val push : t -> bool -> unit
push bs b adds the bit b to the end of the bitset bs.
push bs b
b
bs
val iter : (bool -> unit) -> t -> unit
iter action bs calls the action for each bit in the bitset bs.
iter action bs
action