--- a/Collection.st Wed Nov 30 17:29:44 2016 +0100
+++ b/Collection.st Wed Nov 30 17:43:29 2016 +0100
@@ -1616,16 +1616,16 @@
asArrayOfType:arrayClass
"return a new instance of arrayClass with the collection's elements"
- |anIntegerArray
+ |anArrayInstance
index "{ Class: SmallInteger }" |
- anIntegerArray := arrayClass new:(self size).
+ anArrayInstance := arrayClass new:(self size).
index := 1.
self do:[:each |
- anIntegerArray at:index put:each.
+ anArrayInstance at:index put:each.
index := index + 1
].
- ^ anIntegerArray
+ ^ anArrayInstance
!
asBag