Magnitude Comparisons
object1 < object2 => boolean [Generic Function]
The predefined methods on < behave as follows:
- Built-in real numbers are compared by mathematical value.
- Characters are compared by the ordinal value of the underlying character set. Character case is significant.
- Strings are compared lexicographically, using < on corresponding elements. If one string is a strict prefix of the other, the shorter string is considered the "smaller" one.
object1 > object2 => boolean [Function]
> compares the objects with < (with appropriate argument reordering). If object1 is greater than object2, > returns true. Otherwise, > returns false.> is not a generic function, so you can't add methods to it. To extend the protocol, define methods on <.
object1 <= object2 => boolean [Function]
<= compares the objects with < (with appropriate argument reordering). If object1 is less than or equal to object2, <= returns true. Otherwise, <= returns false.<= is not a generic function, so you can't add methods to it. To extend the protocol, define methods on <.
object1 >= object2 => boolean [Function]
>= compares the objects with <. If object1 is greater than or equal to object2, >= returns true. Otherwise, >= returns false.Next section: Function Defining Forms>= is not a generic function, so you can't add methods to it. To extend the protocol, define methods on <.