From: Gavin Sinclair Date: 2003-01-22T01:05:02+09:00 Subject: Re: Ruby idiom (0...(expr)).map On Wednesday, January 22, 2003, 2:36:50 AM, Martin 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? I vaguely remember this idiom. Can you expand on its use? I think it may become outdated with 1.8 features. Gavin