-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
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