On Tue, May 25, 2004 at 07:20:00PM +0900, Mauricio Fern?ndez wrote:
> On Tue, May 25, 2004 at 06:15:24PM +0900, Gavin Sinclair wrote:
>
> [...]
>
> I'd rather keep Integer#times as it is, and use the 
>   a, b, c = (1..3).map{[]} 

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{[]}

Or something like this:

  a, b, c = Range.times(3).map{[]}

But I'm not sure if it's worth.

Regards,

  Michael