groovy-stream
groovy-stream copied to clipboard
A collection of classes to give a fluent builder for Streams (Lazy Groovy Generators)
I have a few common use cases that I'm finding hard to deal with. The most obvious one is I want to process lines of a file. It's all fine...
So currently you can do: ``` def s = Stream.from x:1..3, y:1..3 map { x + y } filter { x != y } assert s.take( 5 ).collect() == [...
I may just be missing it, but there appears not to be a reduce operation on streams.
Would be good to integrate smoothly into https://code.google.com/p/totallylazy/ we could use their `reduce` functions etc then... Need to look what work would be required to smooth the join between the...