signature ORDERED
An abstract signature for types that provide an ordering, useful for functor arguments. Note that most basic types in the fundamental library match this signature.
See also: HASHABLE
import signature ORDERED from "x-alice:/lib/data/ORDERED-sig"
signature ORDERED = sig type t val compare : t * t -> order end
The abstract type of ordered values.
Returns the relative order of x1 and x2. May raise Unordered if both values are incomparable in a partial ordering.