[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 02:51:03 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv: Gecko/20070509 SeaMonkey/1.1.2

Paolo Bonzini wrote:
This patch adds an #atAll: method to the keyed collections (i.e. Dictionary, MappedCollection, SequenceableCollection).

Great!  I'll add that

aSeqCollect atAll: anInterval

is a powerfully expressive idiom enabled by this extension, replacing all sorts of specialized collection methods, and I'm bound to use it all over the place when I don't want to look those up (or they aren't good enough).

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

reply via email to

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