From: Matthew Feadler Date: 2005-12-03T04:06:26+09:00 Subject: Re: Optimizing for Newbies bbazzarrakk wrote: >> rolls = Array.new(2){Die.new(10).roll} > > Nope. The block is executed to create each element. > This highlights exactly what I wasn't grasping about that line previously: the {} delimits a block. I was (wrongly, of course) equating it to rolls = Array.new(2,Die.new) Now I get it. Thanks! > > If you have Ruby's documentation installed just feed your command-line: > > ri Array.zip > > Or you can look it up here: > > http://www.ruby-doc.org/core/classes/Array.html#M000391 Both excellent reference sources of which I was not aware. Much appreciated. Now the zip method makes perfect sense. -Matthew -- Posted via http://www.ruby-forum.com/.