-
Couldn't load subscription status.
- Fork 1.4k
Add new shorthands for running ZStream #2113
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 new shorthands for running ZStream #2113
Conversation
|
Just my two cents |
|
I wouldn't say I'm sold on it either. @iravid Since you raised the question on whether it should have that behaviour, what do you think? |
|
Yes, I'm not sold either. Let's drop Could you add tests for |
|
It seems to me these should go into |
|
@regiskuckaertz I don't think |
|
Yeah, |
|
As currently implemented, |
|
I've added the tests. @iravid Feel free to assign / ping me when you create that other ticket. |
* Add new shorthands for running ZStream * Remove ZStream#first * Add tests for ZStream head and last * Rename ZStream head and last to runHead and runLast
* Add new shorthands for running ZStream * Remove ZStream#first * Add tests for ZStream head and last * Rename ZStream head and last to runHead and runLast
Resolves #1491
Since there was an "open" question on the behaviour of
headtwo variants were added.headwhich is equivalent to take(1) and is safe for infinite streamsfirstwhich consumes the entire stream (i.e. the inverse of last)