From: Kristof Bastiaensen Date: 2004-05-25T20:48:42+09:00 Subject: Re: [RCR] Numeric#of On Tue, 25 May 2004 19:38:18 +0900, Michael Neumann wrote: > I agree completely with all you said. What about a method > Integer#iterations that returns a Range object? That would indeed be > much more useful, as it could be used with a lot of more methods. > > a, b, c = 3.iterations.map{[]} you could always do: require "enumerator" a, b, c = 3.to_enum(:times).map{[]} but then again typing a, b, c = [], [], [] is much less work ;-) Regards, Kristof