package incr_map

  1. Overview
  2. Docs
type ('k, 'v, 'cmp) t =
  1. | Unchanged
  2. | Reversed
  3. | Custom_by_value of {
    1. compare : 'v -> 'v -> int;
    }
  4. | Custom_by_key_and_value of {
    1. 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.

val sexp_of_t : ('k -> Sexplib0.Sexp.t) -> ('v -> Sexplib0.Sexp.t) -> ('cmp -> Sexplib0.Sexp.t) -> ('k, 'v, 'cmp) t -> Sexplib0.Sexp.t
OCaml

Innovation. Community. Security.