Design for collections upgrades

Rémi Forax forax at univ-mlv.fr
Thu Mar 10 06:00:15 PST 2011


  Le 10/03/2011 13:10, Peter Levart a écrit :
> Let Iterable by default (via defender methods) be lazy but let Collection (also via defender methods) override the same methods an make them eager. Also privide two methods to switch between eager and lazy on the Iterable itself (and override in Collection and subtypes).

If Collection.filter overrides Iterable.filter, they should have the 
same semantics.
And as I already say, how to implement toEager() ?

Rémi



More information about the lambda-dev mailing list