ORDKEY signatureThe ORDKEY signature defines an abstract key type which, in addition to
supporting equality, is also totally
ordered. Any structure which ascribes to ORDKEY also implicitly
ascribes to EQKEY.
type t
val equal : t * t → bool
val compare : t * t → order
val toString : t → string
type tval equal :
t * t → boolval compare :
t * t → orderLESS, EQUAL, or
GREATER as appropriate for the argument pair. This
operation is transitive. It is also consistent: compare (x, y) = EQUAL if and only if
equal (x, y), and compare (x, y) = LESS
if and only if compare (y, x) = GREATER.val toString :
t → string