[erlang-questions] strip end off of string
Wes James
comptekki@REDACTED
Thu May 6 15:20:33 CEST 2010
On Wed, May 5, 2010 at 8:08 PM, Richard O'Keefe <ok@REDACTED> wrote:
>
<snip>
Thanks for your comments on the above :)
> t2(String) ->
> t2a(lists:reverse(String)).
>
The thought just came to me. Does reverse actually reverse all the
data in string and work on it or does it just work from the end going
backward. It seems there would be a performance hit on long "String"s
if reverse actually reversed all the items in to another string then
worked on it. Do you know how reverse actually does this?
<snip>
again, thx for your comments on (is it called erlang matching??)
thx,
-wes
More information about the erlang-questions
mailing list