in reply to Re: Five Ways to Reverse a String of Words (C#, Perl 5, Perl6, Ruby, Haskell)
in thread Five Ways to Reverse a String of Words (C#, Perl 5, Perl 6, Ruby, Haskell)
One may do this with a logarithmic number of concatenations, though (instead of linear). I don't see a feasible way to do such a thing with StringBuilder,
That may make concatenation faster than StringBuilder even in the case of a large number of strings.
I wonder how Perl's join actually works.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Five Ways to Reverse a String of Words (C#, Perl 5, Perl6, Ruby, Haskell)
by fergal (Chaplain) on Aug 13, 2007 at 12:22 UTC | |
by akho (Hermit) on Aug 13, 2007 at 19:30 UTC | |
by Anonymous Monk on Feb 22, 2008 at 09:08 UTC |
In Section
Meditations