Encounter order
Dan Smith
daniel.smith at oracle.com
Thu Oct 25 16:14:12 PDT 2012
On Oct 25, 2012, at 10:00 AM, Brian Goetz <brian.goetz at oracle.com> wrote:
> list.unordered().uniqueElements().toArray();
> Given this, my recommendation is:
> - Provide an .unordered() op for people to opt out of the encounter order when they know they don't care.
Ah, 'unordered' is my 'asKindBParallel' operation. To make my previous discussion concrete, I'm arguing that the result of 'unordered' -- call it an 'UnorderedStream' -- should _not_ extend 'Stream', but rather should have its own set of operations that make sense in an unordered world (e.g., no 'findFirst', no 'skip', commutative-op-only 'reduce', etc.).
(Back to my cave now...)
—Dan
More information about the lambda-libs-spec-experts
mailing list