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

Small typo in program-14.15. #4

Open
dpieroux opened this issue Jan 1, 2021 · 0 comments
Open

Small typo in program-14.15. #4

dpieroux opened this issue Jan 1, 2021 · 0 comments

Comments

@dpieroux
Copy link

dpieroux commented Jan 1, 2021

Hello,

program-14.15:58 should read

lookup(X,[(X1,V1)|XVs],V) :- X \= X1, lookup(X,XVs,V).

(with '\=' instead of '\==').

With '\==', Elisa loops forever if a stimulus contains a variable (i.e. a number) but that the rest of the Input does not match (at least, this is the behavior with SWI).

Regards,
Didier P.

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