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

Add intersection function #81

Closed
Tracked by #59
ppeeou opened this issue Dec 14, 2021 · 0 comments · Fixed by #109
Closed
Tracked by #59

Add intersection function #81

ppeeou opened this issue Dec 14, 2021 · 0 comments · Fixed by #109
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ppeeou
Copy link
Member

ppeeou commented Dec 14, 2021

Suggestion

⭐ Suggestion

Combines two Iterable or AsyncIterable into a set (i.e. no duplicates) composed of those elements common to both Iterable/AsyncIterable.

💻 Use Cases

const iter = intersection([1,2,3,4], [4,3,5,6]);
iter.next() // {value: 4, done:false};
iter.next() // {value: 3, done:false};
iter.next() // {value: undefined, done:true};
@ppeeou ppeeou mentioned this issue Dec 14, 2021
25 tasks
@ppeeou ppeeou changed the title intersection / difference Add intersection difference function Dec 14, 2021
@ppeeou ppeeou added enhancement New feature or request good first issue Good for newcomers v0.4 labels Dec 14, 2021
@ppeeou ppeeou changed the title Add intersection difference function Add intersection function Dec 14, 2021
@ppeeou ppeeou self-assigned this Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant