<div dir="ltr">Hi,<br><br>You can, it's only that 'head' is actually called 'hd' and 'tail' is 'tl'.<br><br>hd([1,2,3]) <br>1<br><br>regards,<br>Vlad<br><br><div class="gmail_quote">2008/7/22 Circular Function <<a href="mailto:circularfunc@yahoo.se">circularfunc@yahoo.se</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
why cant i do head([1,2,3]). or head [1,2,3]. ?<br><br>head and tail aren't real commands just abstract ones so I always have to do the following?<br>[A:B]=[1,2,3].<br>A.<br>1<br>B.<br>[2,3]<br></td></tr></tbody></table>
<br>
<hr size="1"><table><tbody><tr><td>Ta semester! - sök efter resor hos Kelkoo. <br>Jämför pris på flygbiljetter och hotellrum: <a href="http://www.kelkoo.se/c-169901-resor-biljetter.html?partnerId=96914051" target="_blank">http://www.kelkoo.se/c-169901-resor-biljetter.html</a></td>
</tr></tbody></table><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote></div><br></div>