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 a parallel iterator of matching positions #788

Merged
merged 2 commits into from
Sep 29, 2020

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Aug 17, 2020

This is the plural of the position methods, where positions finds
all matching items and returns their indices in a new iterator. This
matches the API of Itertools::positions, but in parallel.

This is the plural of the `position` methods, where `positions` finds
_all_ matching items and returns their indices in a new iterator. This
matches the API of `Itertools::positions`, but in parallel.
Copy link
Member

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks right, but I don't really see any tests with non-trivial predicates, can we add some?

@cuviper
Copy link
Member Author

cuviper commented Sep 15, 2020

@nikomatsakis I don't have non-trivial unit tests, but I think the doc-tests should suffice.

@nikomatsakis
Copy link
Member

bors r+

@nikomatsakis
Copy link
Member

Agreed!

@bors bors bot merged commit dd85a27 into rayon-rs:master Sep 29, 2020
@cuviper cuviper deleted the positions branch February 25, 2023 17:58
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