From: Aldric Giacomoni Date: 2010-02-02T03:24:26+09:00 Subject: Re: Creating Arrays Through a Loop Robert Klemme wrote: > 2010/2/1 Aldric Giacomoni : >> >> One idea is to create an array, and then add arrays as elements. >> >> main_array = Array.new >> (1..10).times { main_array << Array.new } > > Either use (1..10).each or use 10.times - but (1..10).times won't work: > Whoops! That's what I get for crossing two thoughts. -- Posted via http://www.ruby-forum.com/.