From: Yukihiro Matsumoto Date: 2006-02-01T15:26:14+09:00 Subject: Re: [RCR] Numeric#of Hi, On 2/1/06, Jacob Fugal wrote: > On 1/31/06, Yukihiro Matsumoto wrote: > > Using my not-yet-committed 1.9, you can type > > > > 42.times.collect{String::new} > > > > to get the same result. > > So does times still work with a block? Yes. > I'm assuming that it switches > behavior, being a generator itself if a block is present, and creating > a generator object (which includes Enumerable) when no block is > provided. If returns a enumerator object just like other enumerable methods do if no block is given to them. matz.