Design for collections upgrades
Rémi Forax
forax at univ-mlv.fr
Sun Mar 13 12:39:40 PDT 2011
On 03/13/2011 04:37 PM, Colin Decker wrote:
> Set.filter() can return a Set view and List.map() can return a List
> view. Of course, Set.map() can't very well return a Set view.
Thanks for the correction.
I was thinking Set.map() but write Set.filter().
Also it's useful to note that list.subList() return a random access list
if the list is a random access list.
This is not true for List.map().
>
> --
> Colin
Rémi
More information about the lambda-dev
mailing list