package ordering

All checked builds pass
  1. Overview
  2. Docs
Element ordering

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dune-3.25.0.tbz
sha256=1d706779fa8405769a1ae667e4baaf4220ed87ec9d8be9d4fea0cf75bd79013b
sha512=5a03cac721d558b75d68888be0fab149bff7dd3e21a42ea7ac127e44d82b1d6b0454eb4fc9d2395815c5faecd66d4b553e6226508b788bd5a60530b457ecbd19

doc/ordering/Ordering/index.html

Module OrderingSource

Element ordering

Sourcetype t =
  1. | Lt
    (*

    Lesser than

    *)
  2. | Eq
    (*

    Equal

    *)
  3. | Gt
    (*

    Greater than

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

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

Sourceval is_eq : t -> bool
Sourceval min : ('a -> 'a -> t) -> 'a -> 'a -> 'a
Sourceval max : ('a -> 'a -> t) -> 'a -> 'a -> 'a
Sourceval 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.

Sourcemodule O : sig ... end