Created
August 5, 2014 20:00
-
-
Save davidcorbin/8438b681a60bd61e916d to your computer and use it in GitHub Desktop.
sqrt
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
integerSquareRoot :: Integral a => a -> a | |
integerSquareRoot n | |
| n < 0 = error "integerSquareRoot: negative argument" | |
| otherwise = integerSquareRoot' n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment