[erlang-questions] Strings as Lists

Richard Carlsson <>
Fri Feb 15 23:17:56 CET 2008


David Mercer wrote:
> Out of curiosity, besides as an academic exercise and a point of debate,
> what is the practical use of reversing a string?  I've been programming for
> a quarter century and am having trouble remembering when I last needed to
> reverse a string.  Search? yes; compare? yes; substitute? yes; modify? yes.
> Just can't think of when I've needed to reverse a string.  Is there some
> common protocol that requires you to send Unicode strings in reverse order
> or something?

Well, sometimes you do need to trick certain imps to go back to the 
dimension they came from. (http://en.wikipedia.org/wiki/Mister_Mxyzptlk)
Apart from that, there is not much real use for reversed strings.

     drahciR\



More information about the erlang-questions mailing list