<div dir="ltr"><div>Just to be sure...</div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Erlang/OTP 19 [erts-8.2.1] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Eshell V8.2.1 (abort with ^G)</font></div><div><font face="monospace, monospace">1> D = [ "sam1", "sam2" ].</font></div><div><font face="monospace, monospace">["sam1","sam2"]</font></div><div><font face="monospace, monospace">2> [H|T] = D.</font></div><div><font face="monospace, monospace">["sam1","sam2"]</font></div><div><font face="monospace, monospace">3> [H2|T2] = T.</font></div><div><font face="monospace, monospace">["sam2"]</font></div><div><font face="monospace, monospace">4> T2.</font></div><div><font face="monospace, monospace">[]</font></div><div><font face="monospace, monospace">5> H2.</font></div><div><font face="monospace, monospace">"sam2"</font></div><div><font face="monospace, monospace">6> </font></div><div><br></div><div>It works as you expected. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 20, 2017 at 10:00 AM, Éric Pailleau <span dir="ltr"><<a href="mailto:eric.pailleau@wanadoo.fr" target="_blank">eric.pailleau@wanadoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi,<div dir="auto">T is already sam2.</div><div dir="auto">Strings are list so try [H2|T2]=[T] ... </div><div dir="auto">Regards </div></div><br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span></span>Best Regards.<div>Taras Halturin</div></div></div></div>
</div>