AW: [squeak-dev] IdentitySet>>collect:

Frank Lesser frank-lesser at lesser-software.com
Wed Nov 26 23:52:31 UTC 2014


Hi Tobias,
agree, a problem of "OrderedCollection"
not to break a lot of other things we could return an Array.
but for me collecting has priority.
Frank

-----Ursprüngliche Nachricht-----
Von: squeak-dev-bounces at lists.squeakfoundation.org
[mailto:squeak-dev-bounces at lists.squeakfoundation.org] Im Auftrag von Tobias
Pape
Gesendet: Donnerstag, 27. November 2014 00:48
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] IdentitySet>>collect:


On 27.11.2014, at 00:34, Frank Lesser <frank-lesser at lesser-software.com>
wrote:

> hmm, not convinced
> 
> (IdentitySet withAll: #(1 1.0)) collect: [:e| e asInteger ]
> OrderedCollection(1 1 )
> 
> in LSWVST ( one-to-one ), you collect results of evaluating a block on
> objects. 
> 
> Frank
> maybe I am wrong ...

Where would the order come from for that _Ordered_Collection?

Best
	-Tobias



More information about the Squeak-dev mailing list