From: Roger Pack Date: 2008-01-13T06:07:40+09:00 Subject: Re: .times loop returns the number? That should be in the standard lib for coolness and ruby-ish-ness :) > class Numeric > def of &block > Array.new(to_i).map &block > end > end > > list = 42.of{ those } > > a @ http://codeforpeople.com/ -- Posted via http://www.ruby-forum.com/.