-
-
Notifications
You must be signed in to change notification settings - Fork 13
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 StreamingIteratorMut::flatten #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is clever to build Flatten
on StreamingIteratorMut
! That gives it a kind of superpower that the regular FlatMap
can't match with just identity
, since this can iterate the borrowed inner iterator in-place.
Thanks for the review. I agree with your suggestions. Currently I am on vacation but I will follow up on this once I get back. |
I opened #28 for the clippy warnings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rebased and added a couple more fixes for the things below. If that looks good to you, then I think we're all set!
looks good to me :) |
StreamingIteratorMut::flatten
Flatten
impl StreamingIterator for Flatten
impl StreamingIteratorMut for Flatten