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

Modify withFirst() to include (first, first) pair into result #67

Closed
amaembo opened this issue Feb 16, 2016 · 0 comments
Closed

Modify withFirst() to include (first, first) pair into result #67

amaembo opened this issue Feb 16, 2016 · 0 comments
Milestone

Comments

@amaembo
Copy link
Owner

amaembo commented Feb 16, 2016

Currently withFirst() operation does not include (first, first) pair into result, so when one-element stream is passed, the resulting stream is empty. This limits the number of applications for this operation. A proposed change is to include (first, first) pair into result. To mimic the current behavior, withFirst().skip(1) could be used. Unfortunately this would introduce behavioral incompatibility with current version. Hopefully withFirst() is not widely used yet, so this would be an acceptable change.

amaembo added a commit that referenced this issue Mar 15, 2016
@amaembo amaembo added this to the 0.6.0 milestone Mar 15, 2016
@amaembo amaembo closed this as completed Mar 15, 2016
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

1 participant