--- a/Collection.st Mon Feb 15 17:16:34 2016 +0100
+++ b/Collection.st Mon Feb 15 23:05:57 2016 +0100
@@ -1609,12 +1609,12 @@
"return a Dictionary with the receiver collection's elements,
using the original keys of the receiver as dictionary key.
Notice: this is redefined in Dictionary, where it returns the receiver.
- Use asNewDictionary, if you intent to modify the returned collection.
+ Use asNewDictionary, if you intend to modify the returned collection.
See associationsAsDictionary if you already have a collection of associations"
|d|
- d := Dictionary new.
+ d := Dictionary new:self size.
self keysAndValuesDo:[:k :v | d at:k put:v].
^ d