[erlang-questions] Which built-in function makes [H|T] ?

Roger Lipscombe roger@REDACTED
Tue Nov 14 10:55:48 CET 2017


See this thread from earlier this year:
http://erlang.org/pipermail/erlang-questions/2017-January/091560.html

On 14 November 2017 at 08:50, Richard Carlsson
<carlsson.richard@REDACTED> wrote:
> 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
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list