[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] [PATCH] Add #atAll:, improve MappedCollection

From: Stephen Compall
Subject: Re: [Help-smalltalk] [PATCH] Add #atAll:, improve MappedCollection
Date: Thu, 07 Jun 2007 03:20:07 -0500

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

> 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

;;; Stephen Compall ** **
"^aCollection allSatisfy: [:each | aCondition]" is the true idiom

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]