[erlang-questions] Which built-in function makes [H|T] ?
Richard Carlsson
carlsson.richard@REDACTED
Tue Nov 14 09:50:59 CET 2017
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.
/Richard
2017-11-14 8:56 GMT+01:00 Zhongzheng Liu <liuzhongzheng2012@REDACTED>:
> Hi mail-list:
>
> Which built-in function work as fun(H, T) -> [H|T] end ?
>
> i.e how to fill the following expression without user defined function ?
>
> [H|T] = erlang:apply(???, ???, [H, T]).
>
>
> Thanks
>
> Liu zhongzheng
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20171114/71e71887/attachment.htm>
More information about the erlang-questions
mailing list