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

toListWhile for Stream API #22

Open
maslick opened this issue Apr 5, 2017 · 3 comments
Open

toListWhile for Stream API #22

maslick opened this issue Apr 5, 2017 · 3 comments

Comments

@maslick
Copy link

maslick commented Apr 5, 2017

Do you know how to implement the same functionality of toListWhile using java 8 stream api (no rx)?
Thank you.

@thomasnield
Copy link

This sounds like a question best suited for stack overflow

@akarnokd
Copy link
Contributor

akarnokd commented Apr 5, 2017

I've looked into the Stream API before and I found it quite convoluted due to the Spliterator. Implementing custom Iterable/Iterator is quite straightforward in contrast: have a look at IxJava which has 3 modes for buffering with condition.

@davidmoten
Copy link
Owner

davidmoten commented Apr 5, 2017 via email

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

No branches or pull requests

4 participants