<div dir="ltr">Most operators have a corresponding function in the 'erlang' module. For example, A + B can be written erlang:'+'(A,B). However, the cons operator [|] does not, as far as I know.<div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><br> /Richard</div></div>
<br><div class="gmail_quote">2017-11-14 8:56 GMT+01:00 Zhongzheng Liu <span dir="ltr"><<a href="mailto:liuzhongzheng2012@gmail.com" target="_blank">liuzhongzheng2012@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi mail-list:<br>
<br>
Which built-in function work as fun(H, T) -> [H|T] end ?<br>
<br>
i.e how to fill the following expression without user defined function ?<br>
<br>
[H|T] = erlang:apply(???, ???, [H, T]).<br>
<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
Liu zhongzheng<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>
</font></span></blockquote></div><br></div>