<div dir="ltr">Ah, ok!  That SO post is amazing. Thanks for the quick reply.</div><div class="gmail_extra"><br><div class="gmail_quote">On 24 February 2015 at 08:53, Gordon Guthrie <span dir="ltr"><<a href="mailto:gguthrie@basho.com" target="_blank">gguthrie@basho.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">C<div><br></div><div>In case you are uncertain as to what that means - here is a wee primer:</div><div><br></div><div><a href="http://stackoverflow.com/questions/1919097/functional-programming-what-is-an-improper-list" target="_blank">http://stackoverflow.com/questions/1919097/functional-programming-what-is-an-improper-list</a></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>G</div></font></span><div><br><div><blockquote type="cite"><span class=""><div>Le 24 févr. 2015 à 15:37, Cole Fichter <<a href="mailto:cole.fichter@gmail.com" target="_blank">cole.fichter@gmail.com</a>> a écrit :</div><br></span><div><div><div class="h5"><div dir="ltr">I came across the example:<div><br>> [1,2|3].<br>[1,2|3]<br></div><div><br></div><div>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><br></div><div>But what exactly is happening in the example above? Why does the evaluated expression still contain the pipe?</div><div><br></div><div>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><br></div><div>Can someone shed some light?</div><div><br></div><div>Thanks!</div></div></div></div><span class="">
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br></span></div></blockquote></div><br></div></div></blockquote></div><br></div>