package ordering

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Element ordering

type t =
  1. | Lt
    (*

    Lesser than

    *)
  2. | Eq
    (*

    Equal

    *)
  3. | Gt
    (*

    Greater than

    *)
val of_int : int -> t
val to_int : t -> int
val to_string : t -> string

returns the string representation. one of: "<", "=", ">"

val is_eq : t -> bool
val min : ('a -> 'a -> t) -> 'a -> 'a -> 'a
val max : ('a -> 'a -> t) -> 'a -> 'a -> 'a
val reverse : ('a -> 'a -> t) -> 'a -> 'a -> t

reverse cmp takes a comparison function cmp and returns a new comparison function whose comparisons are the opposite of that of cmp.

module O : sig ... end
OCaml

Innovation. Community. Security.