Skip to main content

core/Order

Utilities for Order (comparison between two values).

Type Order​

type Order = Types.Order

A type to represent an order.

Function isLess​

func isLess(order : Order) : Bool

Check if an order is #less.

Function isEqual​

func isEqual(order : Order) : Bool

Check if an order is #equal.

Function isGreater​

func isGreater(order : Order) : Bool

Check if an order is #greater.

Function equal​

func equal(order1 : Order, order2 : Order) : Bool

Returns true if only if order1 and order2 are the same.

Function allValues​

func allValues() : Types.Iter<Order>

Returns an iterator that yields all possible Order values: #less, #equal, #greater.