module BitSet: sig end
A bitset is a array of boolean values that can be accessed with indexes
like an array but provide a better memory usage (divided by 32) for a
very small speed tradeoff.
type t
exception Negative_index of string
val empty : unit -> tval create : int -> tval clone : t -> tval set : t -> int -> unitset s n set the nth-bit in the bitset s to true.val unset : t -> int -> unitunset s n set the nth-bit in the bitset s to false.val put : t -> bool -> int -> unitput s v n set the nth-bit in the bitset s to v.val toggle : t -> int -> unittoggle s n change the nth-bit value in the bitset s.val is_set : t -> int -> boolis_set s n return true if nth-bit it the bitset s is set,
or false otherwise.val compare : t -> t -> intcompare s1 s2 compare two bitsets. Highest bit indexes are
compared first.val equals : t -> t -> boolequals s1 s2 return true if all bits value in s1 are same as s2.val count : t -> intcount s returns the number of bits set in the bitset s.val enum : t -> int Enum.tenum s return an enumeration of bit indexed which are set
in the bitset s.