From: Bulat Ziganshin Date: 2003-01-24T20:54:06+09:00 Subject: Re: Ruby idiom (0...(expr)).map Hello ahoward, Tuesday, January 21, 2003, 8:57:22 PM, you wrote: >> > I've found myself writing (0...(expr)).map (as an alternative to >> > a = []; expr.times {|i| a << ..}) often enough that I was wondering >> > whether to define it as a method of fixnum. Fixnum#map doesn't seem >> > quite right, though - any name suggestions? may be Array.new(expr) {|i| i} -- Best regards, Bulat mailto:bulatz@integ.ru