package dolmen

All checked builds pass
  1. Overview
  2. Docs
A parser library for automated deduction

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dolmen-0.11.tbz
sha256=235c78a1f4dabc6c116d3d1cf51af286cb3fbed713c6116cd5d1b1cbed0cc87f
sha512=a5ca97d43a2e5ef2b03f5731e48cbfe9f09d7824e5839a9a614ca17d50ba71836b8d45b494f58df2566cf5e1983dad5fd75a3ce75f2c0fc5a9572f7ff4d97d2f

doc/dolmen.std/Dolmen_std/Name/Map/index.html

Module Name.MapSource

Standard Map interface

include Maps.S with type key = t
Sourcetype key = t
Sourcetype 'a t
Sourceval empty : _ t

The empty map

Sourceval find_exn : key -> 'a t -> 'a

Exception-raising find function.

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

Option-returning find function.

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

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

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

Update the value bound to a key.

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

Iter on the map.

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

Fold on the map.

Sourceval add_set : prefix:key -> 'a -> 'a t -> 'a t

Add bindings for all keys that share the given prefix.