tail recursion
f n = if n < 2 then 1 else f (f (n-2) + 1)
Here the both calls to fib are recursive but only the outer one is tail recursive.
See tail recursion optimisation, and, if you aren't sick of them already, recursion, tail recursion.
(1996-02-22)

