Created
October 12, 2018 20:48
-
-
Save clojj/19bed26b940579cb2e71f8308db9169a to your computer and use it in GitHub Desktop.
InsistentLazyRedundantcode created by anonymous - https://repl.it/repls/InsistentLazyRedundantcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcdHaskell :: Int -> Int -> Int | |
gcdHaskell x y | x > y = gcdHaskell (x - y) y | |
| x < y = gcdHaskell x (y - x) | |
| otherwise = x | |
main = print $ gcdHaskell 4 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment