Module Base.Comparable
module type Infix = Base__.Comparable_intf.Infix
module type S = Base__.Comparable_intf.S
module type Validate = Base__.Comparable_intf.Validate
module type With_zero = Base__.Comparable_intf.With_zero
val lexicographic : ('a -> 'a -> int) list -> 'a -> 'a -> int
lexicographic cmps x y
comparesx
andy
lexicographically using functions in the listcmps
.
val lift : ('a -> 'a -> 'int_or_bool) -> f:('b -> 'a) -> 'b -> 'b -> 'int_or_bool
lift cmp ~f x y
comparesx
andy
by comparingf x
andf y
viacmp
.
module Inherit : functor (C : sig ... end) -> functor (T : sig ... end) -> S with type t := T.t
Inherit comparability from a component.
module Make_using_comparator : functor (T : sig ... end) -> S with type t := T.t with type comparator_witness := T.comparator_witness
module Validate_with_zero : functor (T : sig ... end) -> sig ... end