make Skip a DoubleEndedIterator#31700
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
a4bfb1b to
3c9ef91
Compare
|
Implementation lgtm, but is it too surprising that it does all the skip steps when the back element is taken? |
|
not doing that would require |
|
This also looks good to me, but this is touching a pretty core iterator so I'm going to tag as |
Skip a DoubleEndedIterator
|
We discussed this in the libs team meeting and the conclusions we reached were:
@oli-obk would you be ok updating this to also include an |
|
It's always backwards compatible to remove the bound in the future, so adding the bound now is fine with me. Sadly this makes it useless for iterating over |
3c9ef91 to
25e5de3
Compare
|
updated and added more tests |
Playground Example