[squeak-dev] #collect: on strings

Damien Cassou damien.cassou at gmail.com
Wed Jun 25 12:19:42 UTC 2008


On Wed, Jun 25, 2008 at 12:01 PM, John Thornborrow <john at pinesoft.co.uk> wrote:
> It would be more natural to use #select: for this behaviour, as #collect: is
> for the purpose of something like:
>
> 'a string' collect: [:each | each asUppercase]

I perfectly know the meaning of collect and I use it correctly,
believe me. You could replace #isVowel by #asciiValue if storing
booleans is a problem for you. The problem is the same.


-- 
Damien Cassou
Peter von der Ahé: «I'm beginning to see why Gilad wished us good
luck». (http://blogs.sun.com/ahe/entry/override_snafu)



More information about the Squeak-dev mailing list