Iterators.filter and remove

Kevin Bourrillion kevinb at google.com
Tue May 22 07:32:38 PDT 2012


On Tue, May 22, 2012 at 7:27 AM, Brian Goetz <brian.goetz at oracle.com> wrote:

Stream operations are intended to be purely functional; if you want to
> mutate the underlying collection, there will be other methods added, such
> as Collections.removeIf(Predicate).
>

Oh.  In addition to the specific things I said about a filtered iterable,
this is just plain a good idea in general.


-- 
Kevin Bourrillion @ Google
Java Core Libraries Team
http://guava-libraries.googlecode.com


More information about the lambda-dev mailing list