There was an error while loading. Please reload this page.
1 parent d8d3efe commit ee6093dCopy full SHA for ee6093d
chapter06-Recursive-functions/1.hs
@@ -0,0 +1,3 @@
1
+fac :: Int -> Int
2
+fac 0 = 1
3
+fac n | n > 0 = n * fac (n - 1)
0 commit comments