The Nat (N ...) minus 1.
Keep in mind that if you want subtract any number,
rather go for Nat (In ...) or Nat (Min ...).
Convert an exact Nat (N n ...) to a Nat (Min n).
nat4 |> NNat.toMin
--> is of type Nat (Min Nat4)There is only 1 situation you should use this.
To make 2 Nats of the same type.
[ atLeast1, NNat.toIn nat1 ]Elm complains:
But all the previous elements in the list are:
Nat (In Nat1 Infinity)
[ atLeast1
, NNat.toMin nat4
]
The
Nat (N ...)plus 1.Keep in mind that if you want add any number, rather go for
Nat (In ...)orNat (Min ...).