From: Bob Hutchison Date: 2002-04-24T02:15:29+09:00 Subject: Re: Is there a better way to convert between arrays and strings? On 4/23/02 11:41 AM, "Matt Armstrong" wrote: > Bob Hutchison writes: > >> Hi, >> >> This code will convert an array of characters to a string: >> >> a = [?a, ?b, ?c] >> s = '' >> for c in a >> s << c >> end >> >> While it works, it isn't fast, in fact, it is *slow*. > > I bet it is much faster in ruby 1.7 than 1.6, since String#<< is much > faster in 1.7. You might be right about that. I'm using 1.7 already.