Ambient_context_core.Ambient_context_hmap
include module type of struct include Hmap end
type 'a key = 'a Hmap.key
The type for keys whose lookup value is of type 'a
.
module Key = Hmap.Key
Keys.
type t = Hmap.t
The type for heterogeneous value maps.
val empty : t
empty
is the empty map.
val is_empty : t -> bool
is_empty m
is true
iff m
is empty.
The type for bindings.
fold f m acc
folds over the bindings of m
with f
, starting with acc
exists p m
is true
iff there exists a bindings of m
that satisfies p
.
val cardinal : t -> int
cardinal m
is the number of bindings in m
.
The functorial interface allows to associate more information to the keys. For example a key name or a key value pretty-printer.
module type KEY_INFO = Hmap.KEY_INFO
The type for key information.
module Make = Hmap.Make
Functor for heterogeneous maps whose keys hold information of type Key_info.t