[erlang-questions] STRCMP or something like that
ok@REDACTED
ok@REDACTED
Mon Dec 24 22:09:50 CET 2012
String operations are explained in every Erlang book I've seen.
It's worth investing in one.
The built in comparison operators work _exactly_ like
strcmp() -- except for not treating 0 specially. Thus
"Haigh" < "Hi", "Hi" < "High", and so on.
> Function("alicia", "alex") ---> will return alex+alicia
Strings are just lists. List concatenation is ++.
Therefore "alicia" ++ "alex" --> "aliciaalex".
More information about the erlang-questions
mailing list