On Thu, 2007-06-07 at 10:04 +0200, Paolo Bonzini wrote:
> >  enabled by this extension, replacing 
> > all sorts of specialized collection methods
> 
> What are you thinking of?

Mostly the methods that answer slices of varying kinds from
seq-collections.

> I should add that MappedCollection is also a powerful tool with this 
> respect, since basically
> 
>      MappedCollection collection: foo map: aCollection
> 
> is a lazy version of "foo atAll: aCollection".  For Intervals, using a 
> MappedCollection may save lots of memory.

I always get the order of these confused when I think about
MappedCollections, so I have to read the docs to refresh.  I'll come up
with a mnemonic eventually, but for now blame #collection:map: as a
selector.

-- 
;;; Stephen Compall ** http://scompall.nocandysw.com/blog **
"^aCollection allSatisfy: [:each | aCondition]" is the true idiom

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to