Andreas Raab uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ar.371.mcz==================== Summary ====================
Name: Collections-ar.371
Author: ar
Time: 24 August 2010, 8:21:43.472 pm
UUID: 2186003a-56f8-5246-8f81-24ccb2200e5c
Ancestors: Collections-nice.370
Make Dictionary>>addAll: use #associationsDo: so that it is consistent with the usage of Dictionary>>add:.
=============== Diff against Collections-nice.370 ===============
Item was changed:
----- Method: Dictionary>>addAll: (in category 'adding') -----
+ addAll: aCollection
+ "Include all the associations of aCollection as the receiver's elements. Answer
+ aCollection. Any collection containing associations can be used as argument."
+
+ aCollection == self ifFalse: [
+ aCollection associationsDo: [:assoc| self add: assoc].
+ ].
+ ^aCollection!
- addAll: aKeyedCollection
- aKeyedCollection == self ifFalse: [
- aKeyedCollection keysAndValuesDo: [:key :value |
- self at: key put: value]].
- ^aKeyedCollection!