obiloud/numeric-decimal/1.0.0

NOTE: the latest version is 3.0.1

Numeric.Nat

Definition

type Nat

Naturals with zero.

Conversion

fromInt : Int -> Nat

Nat from Int

toInt : Nat -> Int

toInt Nat

Arithmetic

add : Nat -> Nat -> Nat

Add two Nats.

Subtract one Nat from another.

Primitives

Nat 0

Nat 1

Nat 2

Nat 3

Nat 4

Nat 5

Increment by 1