Fpath.Map
Path maps.
get_min_binding
is like min_binding
but
val get_max_binding : 'a t -> string * 'a
get_min_binding
is like max_binding
but
get k m
is like Map.S.find
but raises Invalid_argument
if k
is not bound in m
.
of_list bs
is List.fold_left (fun m (k, v) -> add k v m) empty
bs
.
val pp :
?sep:(Stdlib.Format.formatter -> unit -> unit) ->
(Stdlib.Format.formatter -> (path * 'a) -> unit) ->
Stdlib.Format.formatter ->
'a t ->
unit
pp ~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 :
(Stdlib.Format.formatter -> 'a -> unit) ->
Stdlib.Format.formatter ->
'a t ->
unit
dump pp_v ppf m
prints an unspecified representation of m
on ppf
using pp_v
to print the map codomain elements.