[Pharo-dev] Missing collectAsSet: in Pharo 3.0

Roberto Minelli roberto.minelli at usi.ch
Tue Dec 10 08:26:54 EST 2013


No. Since #flatCollectAsSet: is in the image, #collectAsSet: should be in the image as well.

And then, since we want clean code #collectAsSet: is cleaner than #collect:as:.

On Dec 10, 2013, at 2:23 PM, Esteban Lorenzano <estebanlm at gmail.com> wrote:

> I don't think it has to be in the image, 
> 
> After all, you can just replace your calls for #collect:as:
> 
> Esteban
> 
> 
> 
> 
> On Tue, Dec 10, 2013 at 2:21 PM, Roberto Minelli <roberto.minelli at usi.ch> wrote:
> Hi,
> 
> In Pharo 3 you guys integrated Doru’s CollectionsExtension package, which is great.
> 
> You forgot, however, to integrate the utility method #collectAsSet: I was using in several places in my code.
> 
> It should be simply
> ^ self collect: aBlock as: Set
> 
> Could someone please put this in the standard image please? Thanks.
> 
> Cheers,
> R
> 





More information about the Pharo-dev mailing list