[erlang-questions] List of strings problem

Sam Overdorf soverdor@REDACTED
Thu Jul 20 01:39:38 CEST 2017


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



More information about the erlang-questions mailing list