[Grace-core] Lists and filter
Marco Servetto
marco.servetto at gmail.com
Fri Aug 1 15:04:08 PDT 2014
why an iterator can not be a special kind of list?
On 2 August 2014 09:28, Kim Bruce <kim at cs.pomona.edu> wrote:
> I'm a bit surprised that the method filter on a list returns an iterator. I'm not planning on explaining iterators to my first course students (it's more appropriate for students in data structures). That means I can't really teach my students about filter on lists. Why not have filter on iterator return an iterator, but filter on lists return a list?
>
> Kim
>
>
>
>
> _______________________________________________
> Grace-core mailing list
> Grace-core at cecs.pdx.edu
> https://mailhost.cecs.pdx.edu/mailman/listinfo/grace-core
More information about the Grace-core
mailing list