Comparable[A: Comparable[A] #read]¶
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.
Implements¶
- Equatable[A] ref
Public Functions¶
lt¶
Parameters¶
- that: box->A
Returns¶
- Bool val
le¶
Parameters¶
- that: box->A
Returns¶
- Bool val
ge¶
Parameters¶
- that: box->A
Returns¶
- Bool val
gt¶
Parameters¶
- that: box->A
Returns¶
- Bool val
compare¶
Parameters¶
- that: box->A
Returns¶
eq¶
Parameters¶
- that: box->A
Returns¶
- Bool val
ne¶
Parameters¶
- that: box->A
Returns¶
- Bool val