From: Martin DeMello Date: 2002-11-28T03:08:38+09:00 Subject: Re: ranges and the 'times' method Daniel Berger wrote: > Ok, then. What about allowing Ranges to be used with 'times'? > > (3..5).times{...} -> alias for 3.upto(5){...} > > I'm not really pushing for this - just curious what you think. > Horrible idea? There's always each - (3..5).each {|i| p i} 'times' doesn't sound like it iterates over the range. If I had to define it it'd pick a random number from the range and iterate that many times :) martin