July 16, 2009
7:57 a.m.
If people really want to be able to combine enumerator methods for higher efficiently the Collection hierarchy should be fixed. Having external iterator objects like in C++ and Java is not that bad after all:
result := aCollection iterator select: [ :e | ... ]; collect: [ :e | ... ]; contents
It's already there and it's called #readStream. :-) It only lacks #size. See http://code.google.com/p/pharo/issues/detail?id=958 for an outline of the implementation. Paolo