Devoxx - filter, partition and offset
scolebourne at joda.org
Wed Apr 3 09:24:10 PDT 2013
On 3 April 2013 17:13, Richard Bair <richard.bair at oracle.com> wrote:
>>>> Fwiw, I'd expect filter to retain elements that satisfy a predicate. Any
>>>> other method would feel like a double negative to me.
>> Which is exactly how it works.
> And backwards from what I would expect and hence, difficult to remember.
I think its the conflict between what I think of as the concept of
"filtering" (getting rid of stuff) and what I see in lambda (retaining
stuff) that is making it hard for me to remember too.
But I also recognise that others will have their mental model aligned
the other way around, so the method matches their conceptual model. I
guess it like left-handers feel in a right handed world... and I don't
More information about the lambda-dev