Use nonnegative-integer? in favor of natural-number? #23

Merged
jessealama merged 2 commits from nonnegative-integer into master 5 years ago
jessealama commented 5 years ago (Migrated from github.com)

The natural-number? predicate seems to be
unavailable (though there is a remnant of it in the form of
natural-number/c, which is just a contract alias of
exact-nonnegative-integer?). In any case, it surely means
nonnegative integer.

(One might push the envelope here slightly and add
exactness, but this commit does not go that far.)

The natural-number? predicate seems to be unavailable (though there is a remnant of it in the form of [`natural-number/c`](https://docs.racket-lang.org/reference/data-structure-contracts.html?q=nonnegative-integer%3F#%28def._%28%28lib._racket%2Fcontract%2Fprivate%2Fmisc..rkt%29._natural-number%2Fc%29%29), which is just a contract alias of [`exact-nonnegative-integer?`](https://docs.racket-lang.org/reference/number-types.html?q=exact-nonnegative-integer%3F#%28def._%28%28quote._~23~25kernel%29._exact-nonnegative-integer~3f%29%29)). In any case, it surely means nonnegative integer. (One might push the envelope here slightly and add exactness, but this commit does not go that far.)
mbutterick commented 5 years ago (Migrated from github.com)

They should all be exact. And now they are. Thanks!

They should all be exact. And now they are. Thanks!
The pull request has been merged as 460a5480fc.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b nonnegative-integer master
git pull origin nonnegative-integer

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff nonnegative-integer
git push origin master
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/brag#23
Loading…
There is no content yet.