funlx:adder/0), Adder ! {self(), X, Y}, io:format(“Calculating..~n”), receive Result -> Result end. adder() -> receive {From, X, Y} -> From ! X + Y end.
Calculating.. =ERROR REPORT==== 5-Mar-2014::20:24:06 === Error in process <0.83.0> with exit value: {badarith,[{funlx,adder,0,[{file," funlx.erl"},{line,14}]}]} 3>