A fold for adding. e.g. symbol positions
include S
val is_empty : _ t ‑> bool
val length : _ t ‑> int
add m ~key ~data
adds the key to the value already bound to key
in m
. If no
value is bound to key
than the initial value specified by the functor will be
used instead.
val mem : 'a t ‑> 'a ‑> bool
val iter_keys : 'a t ‑> f:('a ‑> unit) ‑> unit
val keys : 'a t ‑> 'a list
val to_map : 'a t ‑> ('a, out_value) Core.Map.Poly.t
val of_map : ('a, out_value) Core.Map.Poly.t ‑> 'a t
include Core.Sexpable.S1 with type key t := key t
val t_of_sexp : (Base.Sexp.t ‑> 'a) ‑> Base.Sexp.t ‑> 'a t
val sexp_of_t : ('a ‑> Base.Sexp.t) ‑> 'a t ‑> Base.Sexp.t