erlang shell via ssh

Jilani Khaldi jilani.khaldi1@REDACTED
Fri Dec 16 00:21:44 CET 2005


Hi All,
How to transalte this code in a tail recursion one?
fib(0) -> 0;
fib(1) -> 1;
fib(N) -> fib(N-1) + fib(N-2).
Seems easy but I couldn't get it working :-(
Thank you.

jk

-- 
Jilani KHALDI
http://jkhaldi.oltrelinux.com




More information about the erlang-questions mailing list