Module RecencyMap.Make
Parameters
Key : PrettyPrintable.PrintableEquatableOrderedType
Value : PrettyPrintable.PrintableOrderedType
Config : Config
Signature
type t
Note that the derived
compare
andequal
functions are sensitive to the underlying implementation and in particular won't equate some objects that denote the same map.
val pp : F.formatter -> t -> unit
val empty : t
val add : key -> value -> t -> t
val bindings : t -> (key * value) list
val exists : t -> f:((key * value) -> bool) -> bool
val filter : t -> f:((key * value) -> bool) -> t
val find_opt : key -> t -> value option
val fold : t -> init:'acc -> f:('acc -> (key * value) -> 'acc) -> 'acc
val fold_map : t -> init:'acc -> f:('acc -> value -> 'acc * value) -> 'acc * t
val is_empty : t -> bool
val map : t -> f:(value -> value) -> t
val mem : t -> key -> bool
val union_left_biased : t -> t -> t