package ocamlformat-lib
Module Ocamlformat_lib.MultimapSource
Maps with a list of values attached to a key. This is an extension of the Map module, so these are compatible with Map.mem, etc.
Source
type ('key, 'value, 'cmp) t =
('key, 'value Ocamlformat_stdlib.list, 'cmp) Ocamlformat_stdlib.Map.tSource
val update_multi :
('key, 'value, 'cmp) t ->
src:'key ->
dst:'key ->
f:
('value Ocamlformat_stdlib.list ->
'value Ocamlformat_stdlib.list ->
'value Ocamlformat_stdlib.list) ->
('key, 'value, 'cmp) tSource
val change_multi :
('key, 'value, 'cmp) t ->
'key ->
'value Ocamlformat_stdlib.list ->
('key, 'value, 'cmp) tSource
val partition_multi :
('key, 'value, 'cmp) t ->
src:'key ->
dst:'key ->
f:('value -> Ocamlformat_stdlib.bool) ->
('key, 'value, 'cmp) tSplit the values of key src with f, the values satisfying f are moved to key dst while the others remain associated to key src.
Source
val filter :
('key, 'value, 'cmp) t ->
f:('value -> Ocamlformat_stdlib.bool) ->
('key, 'value, 'cmp) t