Module Checker__Location.Map
the Map
submodule provides special maps with location
s as keys
type key
= location
type 'a t
the abstract type for the map holding values of type
'a
. Multiple values are allowed to associate with the same location
val empty : 'a t
an empty map
val restrict_to : root list -> 'a t -> 'a t
restrict the domain of a map to
roots
, removing anything else
val merge : ?equal:('a -> 'a -> bool) -> 'a t -> 'a t -> 'a t
merge ?(equal=Stdlib.(=)) t1 t2
mergest1
andt2
, eliminating duplicated entries. Two entriesloc1 => value1
andloc2 => value2
are considered identical ifloc1 = loc2
andequal value1 value2
.Duplications in
t1
ort2
are not eliminated.