#TUNING by stefan
authorStefan Vogel <sv@exept.de>
Tue, 10 Oct 2017 18:06:40 +0200
changeset 22309 a48cd79a42a5
parent 22308 d6552a1b2fb9
child 22310 7c2de8ff3d04
#TUNING by stefan class: MethodDictionary class added: #newWithCapacity:
MethodDictionary.st
--- a/MethodDictionary.st	Tue Oct 10 18:06:26 2017 +0200
+++ b/MethodDictionary.st	Tue Oct 10 18:06:40 2017 +0200
@@ -69,6 +69,14 @@
     ^ self basicNew:(sz * 2)
 !
 
+newWithCapacity:size
+    "return a new empty Collection with capacity for n elements."
+
+    ^ self new:size
+
+    "Created: / 10-10-2017 / 17:51:14 / stefan"
+!
+
 withAll:aDictionary
     "create a MethodDictionary from another Dictionary"