The stream abstraction and substream() (original) (raw)
Paul Sandoz paul.sandoz at oracle.com
Wed Apr 3 04:00:21 PDT 2013
- Previous message: The stream abstraction and substream()
- Next message: Fwd: Single Abstract Method for SAMs cannot be polymorphic
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: The stream abstraction and substream()
- Next message: Fwd: Single Abstract Method for SAMs cannot be polymorphic
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]