Adam Akhtar wrote: > If i have a string "abc" and want to make it like this "aabbcc", how do > i go about it? > > I thought convert it into an array and then use string.map{|x| x << x} > > though i havnt tested that yet. Is there a better way or a string method > that saves me from having to convert it into an array? Another approach: "abc".split(//).map{|c| c*2}.join -- Posted via http://www.ruby-forum.com/.