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

Add Exhaust/Consume operator #11

Closed
GoogleCodeExporter opened this issue Apr 2, 2015 · 2 comments
Closed

Add Exhaust/Consume operator #11

GoogleCodeExporter opened this issue Apr 2, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

An Exhaust operator exists in the test project. It should be offered as a 
public operator in the base library.

Rationale: There is already ForEach and Exhaust is just the loop factored 
out, permitting consumption of a source without side-effect where needed. 
Together with Pipe, ForEach can be implemented in terms of Pipe plus 
Exhaust.

Also, while we're at it, consider Consume versus Exhaust. ;)

Original issue reported on code.google.com by azizatif on 17 Feb 2009 at 11:42

@GoogleCodeExporter
Copy link
Author

Yup, Consume is better than Exhaust.

Original comment by jonathan.skeet on 20 Feb 2009 at 9:39

  • Changed state: Started
  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Done in r53.

Original comment by jonathan.skeet on 20 Feb 2009 at 9:56

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant