-
Notifications
You must be signed in to change notification settings - Fork 21
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
findnsols/4 what is it supposed to do? #101
Comments
I'd say that this is a feature and not a bug. According to SWI's documentation https://www.swi-prolog.org/pldoc/man?predicate=findnsols/4 the SWI version is based on Ciao but added the non-deterministic behavior to implement the chunk option in Ciao's behavior sounds more natural to me for |
An interesting improvement over findall/3 in the wild,
https://arxiv.org/pdf/1709.04302 But SWI-Prolog does copy the goal I think the above example gives a rational why copy is necessary. this might prevent binding G with the 1st solution. means to prevent leaking some binding? BTW: Such abominations are not really necessary if the Prolog
In as far the Ciao Prolog behaviour of findnsols/4 becomes |
The Ciao Playground gives me:
On the other hand SWI-Prolog gives me:
Bug or feature?
The text was updated successfully, but these errors were encountered: