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
I would like to generate a Nat with an inclusive upper value of maxNat. Is there a straightforward way to do that currently? Since natIn lower upper is exclusive on upper, you can't do natIn lower maxNat. For cases other thanmaxNat, you could do natIn lower (increment upper), but this will overflow and give an error if upper is maxNat.
@pchiusano yes, but it's a bit annoying. In my current use-case the upper bound is passed in as an argument to the function, so I'll have to check whether the upper bound is maxNat and use nat if it is and natIn if it is not. If the lower bound were also passed in as an argument I think that I'd still have the same trouble.
I would like to generate a
Nat
with an inclusive upper value ofmaxNat
. Is there a straightforward way to do that currently? SincenatIn lower upper
is exclusive onupper
, you can't donatIn lower maxNat
. For cases other thanmaxNat
, you could donatIn lower (increment upper)
, but this will overflow and give an error ifupper
ismaxNat
.See also #169.
The text was updated successfully, but these errors were encountered: