Utilities for Order
(comparison between two values).
A type to represent an order.
public func isLess(order : Order) : Bool
Check if an order is #less.
public func isEqual(order : Order) : Bool
Check if an order is #equal.
public func isGreater(order : Order) : Bool
Check if an order is #greater.
public func equal(order1 : Order, order2 : Order) : Bool
Returns true if only if order1
and order2
are the same.
public func allValues() : Types.Iter<Order>
Returns an iterator that yields all possible Order
values:
#less
, #equal
, #greater
.