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 FusedIterator for which it is commented fused. #548

Merged
merged 1 commit into from Jun 9, 2021

Conversation

aobatact
Copy link
Contributor

Interleave, IntersperseWith, and ZipLongest are said to be fused in doc comment, but it wasn't marked as FusedIterator.

Interleave, IntersperseWith, and ZipLongest are said to be fused,
but it wasn't marked as FusedIterator.
@aobatact aobatact mentioned this pull request May 26, 2021
bors bot added a commit that referenced this pull request Jun 8, 2021
550: Add More FusedIterator r=jswrenn a=aobatact

These Iterator is fused if the underlying Iterator is fused.
-  `FilterOk`
-  `FilterMapOk`
- `InterleaveShortest`
- `KMergeBy`
- `MergeBy`
- `PadUsing`
- `Positions`
- `Product` 
- `RcIter`
- `TupleWindows`
- `Unique`
- `UniqueBy`
-  `Update`
- `WhileSome`

These is fused even though the underlying Iterator is not fused.
- `Combinations` 
- `CombinationsWithReplacement`
- `Powerset`
- `RepeatN`
- `WithPosition` 

`FusedIterator` can be added to these structs.

Related  #55, #152, #531, #533

I separate the pull request with #548 because these Iterator are sure to be fused because it was documented, but I'm not 100% sure that the structs in this PR is actually fused. (Though I believe it is.)

Co-authored-by: aobatact <aobatact144@gmail.com>
Copy link
Member

@jswrenn jswrenn left a comment

Choose a reason for hiding this comment

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

bors r+

@jswrenn jswrenn added this to the next milestone Jun 9, 2021
jswrenn added a commit that referenced this pull request Jun 9, 2021
@bors
Copy link
Contributor

bors bot commented Jun 9, 2021

Build succeeded:

@bors bors bot merged commit 24f40bd into rust-itertools:master Jun 9, 2021
@aobatact aobatact deleted the FusedIter branch February 7, 2022 16:18
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.

None yet

2 participants