<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'>-export([hej/0,fib/1,fibx/1,fac/1, fac2/1, sq/1,cube/1,power/2, powerc/2,nCk/2]).<br><br>hej() -> 12.<br><br>this compiles but it doesnt work when calling in the shell.<br><br>36> hej(). <br>** exception error: undefined function shell_default:hej/0<br><br>does this have anything to do with functions should be pure in erlang thus calling a fucntion with no parameter isnt allowed? but then why is creating them allowed?<br></td></tr></table><br>
<hr size=1>
Går det långsamt? Skaffa dig en snabbare bredbandsuppkoppling.<br>
<a href=http://shopping.yahoo.se/c-100015813-bredband.html?partnerId=96914325>Sök och jämför hos Yahoo! Shopping.</a>