[erlang-questions] List of strings problem

Vlad Dumitrescu <>
Thu Jul 20 08:58:42 CEST 2017


Hi,
It works as expected for me. Are you sure that D elements are separated by
comma and not by | ?
Regards,
Vlad


On 20 Jul 2017 08:43, "Sam Overdorf" <> wrote:

I have a list of strings I am trying to process with the "|".
D = [ "sam1", "sam2" ]

[H|T] = D gives me H = "sam1"
[H2|T2] = T gives me "s" I was wanting the string "sam2" not the "s".

What am I doing wrong?

Thanks,
Sam Overdorf
_______________________________________________
erlang-questions mailing list

http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170720/da385095/attachment.html>


More information about the erlang-questions mailing list