[ANSI-Smalltalk] Behaviour of #collect:
Richard A. O'Keefe
ok at cs.otago.ac.nz
Tue Sep 23 04:40:12 BST 2008
On 23 Sep 2008, at 4:40 am, Eliot Miranda wrote:
> what about
> Collection class collect: aBlock from: aCollection
> e.g.
> Array collect: [:each | each codePoint] from: 'abc'
> ?
>
Because there isn't any #collect:from: in the Smalltalks
I use. I've already mentioned the operation I added,
which is named consistently with the ANSI methods, namely
<class> withAll: collection collect: aBlock
This also goes with
<collection> addAll: collection collect: aBlock
#withAll:collect: is nice, and I'd like to see it in the
new standard, but it's long winded and it's limiting.
More information about the ANSI-Smalltalk
mailing list