Problems with Strings

Pablo Dejuan <>
Fri Mar 28 11:12:08 CET 2003


Dear folks,
Thank you very much for the answers.
I was trying to rewrite that function because it was part of my current 
studies.
I just get the idea!
After looking at the API more carefully, I realized that to concat two 
strings you should use ++ (I know it's sounds silly but I was confused 
with other languages).
So I'll rewrite it as:
inversa("") -> "";
inversa([A1|A]) -> inversa(A) ++ [A1].

See you





More information about the erlang-questions mailing list