[Setools] Fwd: CALL FOR 3.9 Final changes

Alexandre Bergel Alexandre.Bergel at cs.tcd.ie
Sat Jul 8 08:43:41 UTC 2006


> Alexandre Bergel wrote:
>>> packagesNames :=
>>>      (MCWorkingCopy allManagers
>>>        asSortedCollection: [:a :b | a package name <= b package  
>>> name ])
>>>      collect: [:p| p package name].
>>>
>>>
>>> can be shortened to:
>>>
>>> packagesNames := ((MCWorkingCopy allManagers)
>>>                        collect: [:p| p package name])
>>>                    asSortedCollection.
>> The two expression are not equivalent. The second one gives a  
>> sorted collection and not the first one.
>
>
> You are right, I didn't noticed that. Is it a problem ?

Is it a problem to have the list ordered ?

Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.cs.tcd.ie/Alexandre.Bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





More information about the Setools mailing list