[Newbies] Populate a new array
peace_the_dreamer at yahoo.com
Mon Mar 12 00:29:09 UTC 2007
Populate a new array.
On Mar 11, 2007, at 10:40 , Blake wrote:
> Wondering if I'm missing something.
^(1 to: aQuantity) collect: [:i | stuff]
or alternately can be added:
^Array new: aQuantity withAll: stuff
And depending on context it is probably easier to do
either of these in line than as a method.
myCollection withAll: stuff
will work if you already have the instance.
Yours in service, --Jerome Peace
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
More information about the Beginners