<div dir="ltr">No, it's considered a language primitive, similar to fixed-size tuples {1,2}. That's not to say that there couldn't be a named function like the one you looked for, just that there isn't one because there has never been much of a need for it.<div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature"><br> /Richard</div></div>
<br><div class="gmail_quote">2017-01-31 16:16 GMT+01:00 Garrett Smith <span dir="ltr"><<a href="mailto:g@rre.tt" target="_blank">g@rre.tt</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there a functional reference to the cons operator? Something<br>
equivalent to this:<br>
<br>
fun(H, T) -> [H|T] end<br>
<br>
I was hoping for erlang:'|'(H, T) but no dice.<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>
</blockquote></div><br></div></div>