Parameter PersistentMapsToImperativeMaps.M

type key

The type of keys.

type 'data t

The type of association maps.

val empty : 'data t

The empty map.

val add : key -> 'data -> 'data t -> 'data t

add inserts a new entry or replaces an existing entry.

val find : key -> 'data t -> 'data

find raises Not_found if the key is not in the domain of the map.

val iter : (key -> 'data -> unit) -> 'data t -> unit

iter iterates over all entries.