diff options
Diffstat (limited to 'comparison/Haskell/ack3-11.hs')
| -rw-r--r-- | comparison/Haskell/ack3-11.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/comparison/Haskell/ack3-11.hs b/comparison/Haskell/ack3-11.hs new file mode 100644 index 0000000..7c8f350 --- /dev/null +++ b/comparison/Haskell/ack3-11.hs @@ -0,0 +1,9 @@ +ack 0 n = n+1 +ack m 0 = ack (m-1) 1 +ack m n = ack (m-1) (ack m (n-1)) + + +main = print $ (ack 3 11) + + + |
