incr_map.collate
Incr_map_collate.Compare
incr_map
incr_map.erase_key
type ('k, 'v, 'cmp) t =
| Unchanged
| Reversed
| Custom_by_value of {
compare : 'v -> 'v -> int;
}
| Custom_by_key_and_value of {
compare : ('k * 'v) -> ('k * 'v) -> int;
Partial orders are supported in Custom_by_*, i.e. returning 0 shouldn't cause issues. Rows will be then sorted by key.
Note: Unchanged and Reversed is with respect to 'cmp.
Unchanged
Reversed
'cmp
val sexp_of_t : ('k -> Sexplib0.Sexp.t) -> ('v -> Sexplib0.Sexp.t) -> ('cmp -> Sexplib0.Sexp.t) -> ('k, 'v, 'cmp) t -> Sexplib0.Sexp.t