package dolmen

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

Module Maps.IntSource

Sourcetype 'a t
Sourceval empty : _ t
Sourceval find_exn : int -> 'a t -> 'a

Exception-raising find function.

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

Option-returning find function.

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

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

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

Update the value bound to a key.

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

Iter on the map.

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

Fold on the map.

OCaml

Innovation. Community. Security.