Megírtam tail-rekurziven is, ha már szóba került... factorial(N) when N > 0 -> f(N, 1). f(0, Acc) -> Acc; f(N, Acc) -> f(N - 1, Acc * N).