Glue.HashTablesAsImperativeMaps
An implementation of imperative maps as a hash table.
module H : sig ... end
type key = H.t
The type of keys.
type 'data t = 'data Stdlib.Hashtbl.Make(H).t
The type of association maps.
val create : unit -> 'data t
create() creates a fresh empty map.
create()
val add : key -> 'data -> 'data t -> unit
add inserts a new entry or replaces an existing entry. The map is updated in place.
add
val find : key -> 'data t -> 'data
find raises Not_found if the key is not in the domain of the map.
find
Not_found
val clear : 'data t -> unit
clear empties a map.
clear
val iter : (key -> 'data -> unit) -> 'data t -> unit
iter iterates over all entries.
iter