package aliases

  1. Overview
  2. Docs
In memory indexes

Install

Dune Dependency

Authors

Maintainers

Sources

0.0.5.tar.gz
sha256=34ef64e283322a6fa1e843efa7565c56035165c0efde1dbd7bf1f6ff104661d1
md5=d844a5c9fe0a06abfcc600a0085f45f6

doc/bitree/Bitree/index.html

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

OCaml

Innovation. Community. Security.