[Grace-core] Lists and filter

Kim Bruce kim at cs.pomona.edu
Fri Aug 1 14:28:43 PDT 2014


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






More information about the Grace-core mailing list