Module Util.Bits

A minimalistic bitset data structure.

type t

Represents a bitset.

val create : unit -> t

create () returns a new zero length bitset.

val push : t -> bool -> unit

push bs b adds the bit b to the end of the bitset bs.

val iter : (bool -> unit) -> t -> unit

iter action bs calls the action for each bit in the bitset bs.