Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify checking for a digit #25

Open
pmoura opened this issue Aug 12, 2019 · 0 comments
Open

Simplify checking for a digit #25

pmoura opened this issue Aug 12, 2019 · 0 comments

Comments

@pmoura
Copy link

pmoura commented Aug 12, 2019

Instead of:

numero(D) --> [D], { "0" =< [D], [D] =< "9"}.

you can simply write:

numero(D) --> [D], {0'0 =< D, D =< 0'9}. 

There are other similar cases in the code where list of codes are compared instead of comparing the codes directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant