<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>