[erlang-questions] List matching, help me make this look better

Jarrod Roberson jarrod@REDACTED
Sat Apr 25 22:05:57 CEST 2009


>
>   myfunc("aaaa" ++ _) ->
>        io:format("matched aaaa~n");
>
> instead.  Works also as:
>
>   myfunc("aaaa " ++ R) ->
>       io:format("matthed aaaa~n"),
>       io:format("R matches 123 in your example file");


can somebody explain what the ++ operator is called and is doing there?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090425/0da4129d/attachment.htm>


More information about the erlang-questions mailing list