include Base.Comparable.S with type t := T.t
val ascending : T.t -> T.t -> intascendingis identical tocompare.descending x y = ascending y x. These are intended to be mnemonic when used likeList.sort ~compare:ascendingandList.sort ~cmp:descending, since they cause the list to be sorted in ascending or descending order, respectively.
val descending : T.t -> T.t -> intval between : T.t -> low:T.t -> high:T.t -> boolbetween t ~low ~highmeanslow <= t <= high
val clamp_exn : T.t -> min:T.t -> max:T.t -> T.tclamp_exn t ~min ~maxreturnst', the closest value totsuch thatbetween t' ~low:min ~high:maxis true.Raises if
not (min <= max).
val clamp : T.t -> min:T.t -> max:T.t -> T.t Base.Or_error.t
include Base.Comparator.S with type t := T.t
val comparator : (T.t, comparator_witness) Base.Comparator.comparator
val validate_lbound : min:T.t Base.Maybe_bound.t -> T.t Base.Validate.checkval validate_ubound : max:T.t Base.Maybe_bound.t -> T.t Base.Validate.checkval validate_bound : min:T.t Base.Maybe_bound.t -> max:T.t Base.Maybe_bound.t -> T.t Base.Validate.check
module Replace_polymorphic_compare : sig ... endmodule Map : Map.S with type Key.t = T.t with type Key.comparator_witness = comparator_witnessmodule Set : Set.S with type Elt.t = T.t with type Elt.comparator_witness = comparator_witness