From: benny Date: 2004-11-05T23:08:42+09:00 Subject: Re: Cleaner way to do this? benny wrote: > > arr = [1, 2, 3, 4, 5] > first = arr.shift > print arr.inject(first) { | c, i | "#{c.to_s}, #{i.to_s}" } > > benny now I saw the initial post :) sorry for the noise benny