From: Logan Capaldo Date: 2006-07-21T11:40:11+09:00 Subject: Re: Using .each with constructors On Jul 20, 2006, at 7:32 PM, transfire@gmail.com wrote: > Hmm...It's too bad that #times below returns 3. It be pretty neat > if it > acted like #map in this respect instead. > > 3.times { Object.new } > irb(main):001:0> RUBY_VERSION => "1.9.0" irb(main):002:0> a, b, c = 3.times.map { Object.new } => [#, #, #] Just saying is all.