<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">C<div class=""><br class=""></div><div class="">In case you are uncertain as to what that means - here is a wee primer:</div><div class=""><br class=""></div><div class=""><a href="http://stackoverflow.com/questions/1919097/functional-programming-what-is-an-improper-list" class="">http://stackoverflow.com/questions/1919097/functional-programming-what-is-an-improper-list</a></div><div class=""><br class=""></div><div class="">G</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Le 24 févr. 2015 à 15:37, Cole Fichter <<a href="mailto:cole.fichter@gmail.com" class="">cole.fichter@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I came across the example:<div class=""><br class="">> [1,2|3].<br class="">[1,2|3]<br class=""></div><div class=""><br class=""></div><div class="">I understand that the pipe character, |, can be used to append an item to the head of the list or to pop an item off the list in a pattern match.</div><div class=""><br class=""></div><div class="">But what exactly is happening in the example above? Why does the evaluated expression still contain the pipe?</div><div class=""><br class=""></div><div class="">My best guess is that the final expression results in a match specification that could be used in a pattern match. However, that seems strange too because if so, we'd be popping two items off the list, which should be illegal.</div><div class=""><br class=""></div><div class="">Can someone shed some light?</div><div class=""><br class=""></div><div class="">Thanks!</div></div>
_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""></div></blockquote></div><br class=""></div></body></html>