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

Miguel Emilio Ruiz meruiz77@REDACTED
Tue Nov 14 09:48:17 CET 2017


Hi,

I don't know if what you want is this, I'm newbie in Erlang:

[H|T] = [H] ++ T.


Miguel Ruiz

> El 14 nov 2017, a las 8:56, Zhongzheng Liu <liuzhongzheng2012@REDACTED> escribió:
> 
> 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



More information about the erlang-questions mailing list