Fixed fac

This commit is contained in:
Chris Done 2019-11-15 16:38:24 +01:00
parent 6f23223717
commit a8c3bab394

View File

@ -7,8 +7,8 @@ factorial = \n -> case n of
go =
\n acc ->
case n of
0 -> 1
1 -> 1
0 -> acc
1 -> acc
_ -> go (n - 1) (n * acc)
it = go 5 1
it = go 3 1