Modref.MapModule reference maps.
of_list bs is List.fold_left (fun m (k, v) -> add k v m) empty bs.
add k v m is m with k mapping to l such that l is v :: find k m if k was bound in m and [v] otherwise.
val add_to_set :
(module Stdlib.Set.S with type elt = 'a and type t = 'set) ->
key ->
'a ->
'set t ->
'set tadd (module S) k v m is m with k mapping to s such that s is S.add v (find k m) if k was bound in m and S.singleton [v] otherwise.
val pp : ?sep:unit B0_std.Fmt.t -> (key * 'a) B0_std.Fmt.t -> 'a t B0_std.Fmt.tpp ~sep pp_binding ppf m formats the bindings of m on ppf. Each binding is formatted with pp_binding and bindings are separated by sep (defaults to Format.pp_print_cut). If the map is empty leaves ppf untouched.
val dump : 'a B0_std.Fmt.t -> 'a t B0_std.Fmt.tdump pp_v ppf m prints an unspecified representation of m on ppf using pp_v to print the map codomain elements.