author | Stefan Vogel <sv@exept.de> |
Tue, 28 Apr 2020 16:22:26 +0200 | |
changeset 25375 | b784fc06a5eb |
parent 25374 | c5178797ee0c |
child 25376 | 88a3329875ba |
--- a/KeyedCollection.st Tue Apr 28 16:22:11 2020 +0200 +++ b/KeyedCollection.st Tue Apr 28 16:22:26 2020 +0200 @@ -85,6 +85,14 @@ "Created: / 17-09-2018 / 14:51:59 / Stefan Vogel" ! +newWithCapacity:size + "return a new empty Collection preferrably with capacity for n elements" + + ^ self new:size. + + "Created: / 28-04-2020 / 15:57:08 / Stefan Vogel" +! + withAll:aCollection "create a KeyedCollection from another Collection with keys"