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 than maxNat, you could do natIn lower (increment upper), but this will overflow and give an error if upper is maxNat.
See also #169.
I would like to generate a
Natwith an inclusive upper value ofmaxNat. Is there a straightforward way to do that currently? SincenatIn lower upperis 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 ifupperismaxNat.See also #169.