[erlang-questions] tail and head

Circular Function <>
Tue Jul 22 08:39:30 CEST 2008


why cant i do head([1,2,3]). or head [1,2,3]. ?

head and tail aren't real commands just abstract ones so I always have to do the following?
[A:B]=[1,2,3].
A.
1
B.
[2,3]



      __________________________________________________________
Går det långsamt? Skaffa dig en snabbare bredbandsuppkoppling. 
Sök och jämför priser hos Kelkoo.
http://www.kelkoo.se/c-100015813-bredband.html?partnerId=96914325
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080722/e9ac205d/attachment.html>


More information about the erlang-questions mailing list