From: Rodrigo Bermejo Date: 2008-03-07T02:14:37+09:00 Subject: Re: duplicating characters in a string 7stud -- wrote: > Adam Akhtar wrote: >> >>> Ask 10 Ruby programmers this question and I'm sure you'll get 11 >>> different answers. If your definition of 'best' is 'fastest' you'll >>> simply have to code and benchmark a couple of solutions. #answers.succ "abc".gsub(/./) { |x| x * 2 } -- Posted via http://www.ruby-forum.com/.