We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/triska/the-power-of-prolog/blob/master/prolog/concepts.html
hailstone(N0, N) :- N0 mod 2 #= 0, N1 #= N0 // 2, hailstone(N1, N).
Should be N1 #= N0 / 2,
The text was updated successfully, but these errors were encountered:
ENHANCED: Use declarative multiplication instead of division.
4683bf4
Declarative integer multiplication is more portable. Raised as issue #6 by @jusski. Thank you!
Thank you! I have installed a solution that works in SICStus and also in other Prolog systems, please have a look.
Sorry, something went wrong.
No branches or pull requests
https://github.com/triska/the-power-of-prolog/blob/master/prolog/concepts.html
Should be N1 #= N0 / 2,
The text was updated successfully, but these errors were encountered: