You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What differs between Integer and Natural, except that Natural cannot be negative?
dataNatural=NatS#GmpLimb#--^ in @[0, maxBound::Word]@
| NatJ#{-# UNPACK #-} !BigNat--^ in @]maxBound::Word, +inf[@
We should probably not encode these internal constructors in the encoding format.
In general it looks similar to Integer, so we could use the same approach, or even piggyback on the Integer serialisation.
@kolmodin it's very similiar to Integer, except that it uses Word instead of Int for small values, and that obviously Natural can only represent non-negative numbers...
The
Natural
type has been officially added tobase-4.8.0.0
The text was updated successfully, but these errors were encountered: