next up previous contents index
Next: max,min Up: TotallyOrderedType Previous: TotallyOrderedType   Contents   Index


compare


Signature

compare: (%,%) $\to$ MachineInteger


Usage

compare(a,b)


Parameter Type Description
a, b % elements of the type


Returns

compare(a,b) returns $n < 0$ if $a < b$, $n = 0$ if $a = b$ and $n > 0$ if $a > b$.



Manuel Bronstein 2004-06-28