TicTacToe - 0.1.0

Stdlib.Trait.Ord

Definitions

import Stdlib.Data.Ordering open public

builtin ord trait type Ord ASource#

A trait for defining a total order

Constructors

mkOrd@{ builtin compare cmp : A -> A -> Ordering; }

deriving instance orderingOrdI : Ord OrderingSource#

<= {A} {{Ord A}} (x y : A) : BoolSource#

Returns true iff the first element is less than or equal to the second.

< {A} {{Ord A}} (x y : A) : BoolSource#

Returns true iff the first element is less than the second.

> {A} {{Ord A}} (x y : A) : BoolSource#

Returns true iff the first element is greater than the second.

>= {A} {{Ord A}} (x y : A) : BoolSource#

Returns true iff the first element is greater than or equal to the second.

min {A} {{Ord A}} (x y : A) : ASource#

Returns the smaller element.

max {A} {{Ord A}} (x y : A) : ASource#

Returns the larger element.