Skip to content

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

aobatact added 2 commits May 26, 2021 13:10
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.

2 participants