← Standard library

Comparable

constraint Comparable
import Comparable from Wax;

Requires an ordering operation. Return a negative value, zero, or a positive value for less, equal, or greater, and provide a consistent transitive ordering for sorting and binary search.

CollectionConstraints.wax:17

Members

CompareTomethod

public fn CompareTo(this other) : int32

Returns a negative value, zero, or a positive value according to relative ordering. The magnitude has no ordering meaning.

CollectionConstraints.wax:22