Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.49 KB

order.rst

File metadata and controls

47 lines (37 loc) · 1.49 KB

Order

Type class used to supply evidence that type T has basic ordering operations defined on it.


Abstract Methods

trait Order[T]
def lessThan(a: T, b: T): MBoolean
Returns true if a is less than b, false otherwise.
def lessThanOrEqual(a: T, b: T): MBoolean
Returns true if a is less than or equal to b, false otherwise.
def equal(a: T, b: T): MBoolean
Returns true if a is equal to b, false otherwise.