Comparisons

LT

(LT)
> Nat

Represents "less than" in ordering comparisons.

LT == 0

EQ

(EQ)
> Nat

Represents "equal to" in ordering comparisons.

EQ == 1

GT

(GT)
> Nat

Represents "greater than" in ordering comparisons.

GT == 2

ordWeld

Combines two ordering results, giving precedence to the first non-EQ result.

isZero

Checks if a value is zero.

isOne

Checks if a value is one.

cmp

Compares two values, returning LT, EQ, or GT.

eql

Checks if two values are equal.

neq

Checks if two values are not equal.

lth

Checks if the first value is less than the second.

lte

Checks if the first value is less than or equal to the second.

gth

Checks if the first value is greater than the second.

gte

Checks if the first value is greater than or equal to the second.

min

Returns the minimum of two values.

max

Returns the maximum of two values.

Last updated