The stream abstraction and substream()

Paul Sandoz paul.sandoz at oracle.com
Wed Apr 3 04:00:21 PDT 2013


On Apr 3, 2013, at 12:26 PM, Jose <jgetino at telefonica.net> wrote:

> 
>>> Just do limit(n).forEach(...)
> 
> 
> Sorry, I was meaning like a forEach, but forgot to add "non terminal"
> 
> 


Not a good idea due to parallel evaluation.

You need to think of other ways, like previously suggested, of splitting the stream into 2 parts.

Paul.


More information about the lambda-dev mailing list