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

Feature request subtract/3 and friends #1564

Closed
Jean-Luc-Picard-2021 opened this issue Aug 13, 2022 · 1 comment
Closed

Feature request subtract/3 and friends #1564

Jean-Luc-Picard-2021 opened this issue Aug 13, 2022 · 1 comment

Comments

@Jean-Luc-Picard-2021
Copy link

Jean-Luc-Picard-2021 commented Aug 13, 2022

Was this ever considerd to include in Scryer Prolog?

subtract(+Set, +Delete, -Result)
Delete all elements in Delete from Set. Deletion is based on unification using memberchk/2.
https://www.swi-prolog.org/pldoc/doc_for?object=subtract/3

Somehow Scryer Prolog has a library(lists), but it is not included there.
And I didn't find it elsewhere.

@aarroyoc
Copy link
Sponsor Contributor

The SWI-Prolog page itself says that those predicates are a bit clunky and "can easily lead to dubious results". However, in Scryer it's already ord_subtract/3

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