Skip to content

Comparable[A: Comparable[A] #read]

[Source]

Total ordering. The default compare, le, ge, and gt assume lt defines a total order. Types with a partial order should implement Equatable instead and define their own comparison methods.

interface ref Comparable[A: Comparable[A] #read] is
  Equatable[A] ref

Implements


Public Functions

lt

[Source]

fun box lt(
  that: box->A)
: Bool val

Parameters

  • that: box->A

Returns


le

[Source]

fun box le(
  that: box->A)
: Bool val

Parameters

  • that: box->A

Returns


ge

[Source]

fun box ge(
  that: box->A)
: Bool val

Parameters

  • that: box->A

Returns


gt

[Source]

fun box gt(
  that: box->A)
: Bool val

Parameters

  • that: box->A

Returns


compare

[Source]

fun box compare(
  that: box->A)
: Compare

Parameters

  • that: box->A

Returns


eq

[Source]

fun box eq(
  that: box->A)
: Bool val

Parameters

  • that: box->A

Returns


ne

[Source]

fun box ne(
  that: box->A)
: Bool val

Parameters

  • that: box->A

Returns