unrdered()
    Paul Sandoz 
    paul.sandoz at oracle.com
       
    Thu Apr  4 07:08:24 PDT 2013
    
    
  
On Apr 4, 2013, at 3:56 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
>> Although collectUnordered also back propagates lack of order upstream
>> (just like forEach, or findAny). To remove collectUnordered we would
>> need collectors to define whether they preserve order or not (I see
>> in a recent change set to lambda you started work on that).
> 
> With
>  foo.unordered()....collect()
> vs
>  foo...collectUnordered()
> 
> unless any of the ops in ... inject order (only candidate I can think of is sort, when you probably really want the order!), it will be unordered for all of the ... ops -- so do we really need the back-propagation?
> 
I was thinking the same thing, we can get rid of the back propagation. It is complex, plus annoying to implement :-)
We can then also achieve what Joe proposes with forEach.
Paul.
    
    
More information about the lambda-libs-spec-observers
mailing list