Interface Ord<Lhs, Rhs>

All instances of Ord must satisfy following conditions:

  • Transitivity: If f is Ord, for all a, b and c; f(a, b) == f(b, c) == f(a, c).
  • Duality: If f is Ord, for all a and b; f(a, b) == -f(b, a).
  • Strict: Ordering for all values is well-defined (so the return value is not an Option).

Type Parameters

  • Lhs

  • Rhs = Lhs

Hierarchy

Properties

[eqSymbol]: true
cmp: ((lhs, rhs) => Ordering)

Type declaration

eq: ((l, r) => boolean)

Type declaration

    • (l, r): boolean
    • Parameters

      • l: Lhs
      • r: Rhs

      Returns boolean

partialCmp: ((lhs, rhs) => Option<Ordering>)

Type declaration

Generated using TypeDoc