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 More FusedIterator #550

Merged
merged 2 commits into from Jun 8, 2021
Merged

Conversation

aobatact
Copy link
Contributor

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.)

Some Iterator is fused if the underlying Iterator is fused.
(UniqueBy, Unique, InterleaveShortest, Product, MergeBy, FilterOk,
FilterMapOk, Positions, Update)
Combinations is fused.
Mark FusedIterator to WhileSome, RcIter, PadUsing, TupleWindows,
TupleCombinations, RepeatN, Powerset, CombinationsWithReplacement,
WithPosition, KMergeBy
@aobatact aobatact changed the title More fused iter Add More FusedIterator May 26, 2021
@jswrenn jswrenn added this to the next milestone Jun 8, 2021
jswrenn added a commit that referenced this pull request Jun 8, 2021
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.

Thanks for this thorough examination of so many iterators!

bors r+

@jswrenn
Copy link
Member

jswrenn commented Jun 8, 2021

let's try that again

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 8, 2021

Build succeeded:

@bors bors bot merged commit eedea19 into rust-itertools:master Jun 8, 2021
@aobatact aobatact deleted the MoreFusedIter branch June 9, 2021 02:46
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