Haskell | Wiki community | Recent changes Random page | Special pages
Not logged in Log in | Help
Edit this page | Discuss this page | Page history | What links here | Related changes
Categories: Code
mccarthy91 n = if n <= 100 then (mccarthy91.mccarthy91.(+11)) n else n - 10
or with guards:
mccarthy91 n | n <= 100 = mccarthy91 . mccarthy91 . (+11) $ n | otherwise = n - 10