Y
Hacker News
new
|
ask
|
show
|
jobs
by
tromp
3791 days ago
The former is equivalent to
fac' f 0 = 1 fac' f n = n * f (n-1) fix f = f (fix f) fac = fix fac'
so if the second is indeed faster then explicit fixpoints beat tail recursion