Module Univ_map.With_foldSource

keys that map to an accumulator value with an associated fold operation

Sourcemodule Key : sig ... end
Sourceval set : t -> key:('a, 'b) Key.t -> data:'b -> t

reset the accumulator

Sourceval find : t -> ('a, 'b) Key.t -> 'b

the current accumulator

Sourceval add : t -> key:('a, 'b) Key.t -> data:'a -> t

fold value into accumulator

Sourceval change : t -> ('a, 'b) Key.t -> f:('b -> 'b) -> t

accumulator update