package dolmen

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Maps on namespaces

type 'a t
val empty : _ t
val find_exn : t -> 'a t -> 'a

Exception-raising find function.

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

Option-returning find function.

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

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

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

Update the value bound to a key.

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

Iter on the map.

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

Fold on the map.

OCaml

Innovation. Community. Security.