Module Private.Bit_vector

A naive implementation of mutable bit vectors.

At some point, with some benchmarks for sanity checks, it seems desirable to switch to a less naive implementation.

type t
val sexp_of_t : t -> Sexplib0.Sexp.t
val create : len:int -> bool -> t
val length : t -> int
val set : t -> int -> bool -> unit
val get : t -> int -> bool
val reset : t -> bool -> unit
val copy : t -> t
val filter_mapi : t -> f:(int -> bool -> 'a option) -> 'a Stdlib.Array.t

In place bitwise operations

val bw_and_in_place : mutates:t -> t -> unit