[Setools] Fwd: CALL FOR 3.9 Final changes
Alexandre Bergel
Alexandre.Bergel at cs.tcd.ie
Fri Jul 7 15:43:14 UTC 2006
> 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.
Did I miss something ?
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.cs.tcd.ie/Alexandre.Bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
More information about the Setools
mailing list