[erlang-questions] List of strings problem

Vlad Dumitrescu vladdu55@REDACTED
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" <soverdor@REDACTED> 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
erlang-questions@REDACTED
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.htm>


More information about the erlang-questions mailing list