[erlang-questions] tail and head

Christian S chsu79@REDACTED
Tue Jul 22 09:19:27 CEST 2008


The names of the functions are erlang:hd/1 and erlang:tl/1

And yes, "[A|B] = List." is another way to deconstruct a list.

2008/7/22 Circular Function <circularfunc@REDACTED>:
> why cant i do head([1,2,3]). or head [1,2,3]. ?



More information about the erlang-questions mailing list