From: Todd Benson Date: 2008-02-05T08:03:21+09:00 Subject: Re: shorter form of concat On Feb 4, 2008 3:34 PM, Karl von Laudermann wrote: > On Feb 4, 4:53 am, SpringFlowers AutumnMoon > wrote: > > thanks. or this one works too: > > > > p (1..10).inject{|x,y| "#{x}#{y}"} > > As does this: > > (1..10).map {|n| n.to_s}.join Yes :) I use #map on ranges frequently.