devurmel / morelinq

Automatically exported from code.google.com/p/morelinq
Apache License 2.0
0 stars 0 forks source link

Add Exhaust/Consume operator #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
Yup, Consume is better than Exhaust.

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

GoogleCodeExporter commented 9 years ago
Done in r53.

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