package dolmen

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

Module Maps.MakeSource

Parameters

Signature

Sourcetype 'a t
Sourceval empty : _ t
Sourceval find_exn : Ord.t -> 'a t -> 'a

Exception-raising find function.

Sourceval find_opt : Ord.t -> 'a t -> 'a option

Option-returning find function.

Sourceval add : Ord.t -> 'a -> 'a t -> 'a t

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

Sourceval find_add : Ord.t -> ('a option -> 'a) -> 'a t -> 'a t

Update the value bound to a key.

Sourceval iter : (Ord.t -> 'a -> unit) -> 'a t -> unit

Iter on the map.

Sourceval fold : (Ord.t -> 'a -> 'acc -> 'acc) -> 'a t -> 'acc -> 'acc

Fold on the map.

OCaml

Innovation. Community. Security.