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

allow single argument for union!! and setdiff!!, add intersect!! and symdiff!! #15

Merged
merged 2 commits into from
Sep 24, 2023

Conversation

matthias314
Copy link
Contributor

This PR makes the following changes:

  • union!! and setdiff!! now accept a single argument, like union, union! etc.

  • A mistake in the doc string for setdiff!! is corrected.

  • New functions intersect!! and symdiff!! are added. I don't know why they were missing so far.

  • All four functions pass all their arguments at once to the no-bang or single-bang version instead of using foldl. I see no reason not to do it. Moreover, for symdiff!! this preserves the order of elements whereas foldl would change it.

This PR does not address the issue #14.

* union!! and setdiff!! now accept a single argument

* doc string for setdiff!! corrected

* new functions intersect!! and symdiff!! added
@MasonProtter
Copy link
Member

Thank you @matthias314, this looks great and I apologize for not noticing it earlier.

@MasonProtter MasonProtter merged commit 4b45d61 into JuliaFolds2:master Sep 24, 2023
26 checks passed
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

Successfully merging this pull request may close these issues.

2 participants