<div dir="ltr">2017-04-16 14:41 GMT+01:00 Mikael Pettersson <span dir="ltr"><<a href="mailto:mikpelinux@gmail.com" target="_blank">mikpelinux@gmail.com</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Mikael Pettersson writes:<br></span>...<br>
f is option 1 above, g is option 2. h is g with added is_integer/1 check.<br>
i is f but with integer tags not atoms. j wraps the two cases as [X|[]] and {Y}.<br>
k is j but with Y left unwrapped. l is j but swaps the order and checks with<br>
is_integer/1 before matching on [Y|_].<br></blockquote><div><br></div><div>Just a note: [X|[]] and [X] result in identical abstract code.</div><div><br></div><div>BR,</div><div>Ulf W</div></div></div></div>