[squeak-dev] The Trunk: Collections-ct.957.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu Dec 9 13:07:44 UTC 2021
Marcel Taeumel uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ct.957.mcz
==================== Summary ====================
Name: Collections-ct.957
Author: ct
Time: 7 September 2021, 1:34:32.169692 pm
UUID: ea178eab-7ac1-f24f-980d-5377e4c824ac
Ancestors: Collections-dtl.954
Adds Collection >> #sortedSafely analogously to Dictionary >> #keysSortedSafely. This can establish an order for arbitrary kinds of elements.
=============== Diff against Collections-dtl.954 ===============
Item was added:
+ ----- Method: Collection>>sortedSafely (in category 'sorting') -----
+ sortedSafely
+
+ ^ self sorted: #compareSafely:!
Item was changed:
----- Method: Dictionary>>keysSortedSafely (in category 'accessing') -----
keysSortedSafely
+
+ ^ self keys sortedSafely!
- "Answer a sorted Array containing the receiver's keys."
- ^ self keys sort:
- [ : x : y | x compareSafely: y ]!
More information about the Squeak-dev
mailing list
|