package multicore-bench

  1. Overview
  2. Docs

Module Util.BitsSource

A minimalistic bitset data structure.

Sourcetype t

Represents a bitset.

Sourceval create : unit -> t

create () returns a new zero length bitset.

Sourceval push : t -> bool -> unit

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

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

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