<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'>6> Fac = fun(X) -> N * Fac(N-1).<br>* 1: syntax error before: '.'<br>6> Fac = fun(X) -> N * Fac(N - 1).<br>* 1: syntax error before: '.'<br>6> Fac = fun(X) -> N * fac(N - 1).<br>* 1: syntax error before: '.'<br>6> fac = fun(X) -> N * fac(N - 1).<br>* 1: syntax error before: '.'<br><br>is it not possible to write recursive functions in the shell?<br>i have to do that ina module?<br>can i write functiosn any other way than making an anonymous one and assigning it to a variable?<br>6> Sq = fun(X) -> X*X end.<br>#Fun<erl_eval..6.13229925><br>7> Sq(12).<br>144<br>8> <br></td></tr></table><br>
<hr size=1>
Låna pengar utan säkerhet.<br>
<a href=http://shopping.yahoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014>Sök och jämför hos Yahoo! Shopping.</a>