aliases

In memory indexes
IN THIS PACKAGE
Module Bitree
type 'a t

the type of bitree

val init : ?cell_size:int -> int -> int -> 'a t

init min max creates a bitree to bind value between to int where min < int < max.

val clear : 'a t -> unit

clear t clear the bitree t

val insert : 'a t -> int -> 'a -> unit

insert t i v bind the key i to the value v in the bitree t

val remove : 'a t -> int -> 'a -> unit

remove t i v remove the key i with value v in the bitree t

val fold : 'a t -> int -> int -> ( 'b -> 'a -> 'b * bool ) -> 'b -> 'b

fold t lower upper f acc fold over bindings between lower and upper bound in t. The boolean indicate whether or not the fold should be stopped even if more matching bindings are available