Problems with Strings

Pablo Dejuan <>
Fri Mar 28 03:08:09 CET 2003

Hi. I'm new in this and I have dificulties using strings. I tried to do 
an "inverese" function that should turn "bac" into "cab" but instead of 
this I get [98,[97,[99,[]]]] which I noticed that are tha Ascii codes 
for c, a, and b.

Here is the code:
inversa("") -> "";
inversa([Ini|Cont]) -> Inv= inversa(Cont), [Ini,Inv].

Thanks In Advance.

More information about the erlang-questions mailing list