package dolmen

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t
val empty : _ t
val find_exn : int -> 'a t -> 'a

Exception-raising find function.

val find_opt : int -> 'a t -> 'a option

Option-returning find function.

val add : int -> 'a -> 'a t -> 'a t

Add a new binding, shadowing any earlier bdingin to the same key.

val find_add : int -> ('a option -> 'a) -> 'a t -> 'a t

Update the value bound to a key.

val iter : (int -> 'a -> unit) -> 'a t -> unit

Iter on the map.

val fold : (int -> 'a -> 'acc -> 'acc) -> 'a t -> 'acc -> 'acc

Fold on the map.

OCaml

Innovation. Community. Security.