From: Joel VanderWerf Date: 2003-06-07T05:45:13+09:00 Subject: Re: [RCR] join block Simon Strandgaard wrote: > > [1, 2, 3].join {|x| "#{x}"} > > => "123" What, you don't like the utter simplicity of the following? ;) [1, 2, 3].map {|x| "#{x}"}.join I guess the intermediate array is point against this, though. Somehow, I would expect Array#join to pass two args to the block, like this: [1,2,3].join {|x,y| x < y ? " < " : " >= " } # ==> "1 < 2 < 3"