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

bug in code? #6

Open
jusski opened this issue May 28, 2018 · 1 comment
Open

bug in code? #6

jusski opened this issue May 28, 2018 · 1 comment

Comments

@jusski
Copy link

jusski commented May 28, 2018

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,

triska added a commit that referenced this issue May 29, 2018
Declarative integer multiplication is more portable.

Raised as issue #6 by @jusski. Thank you!
@triska
Copy link
Owner

triska commented May 29, 2018

Thank you! I have installed a solution that works in SICStus and also in other Prolog systems, please have a look.

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

2 participants