Created
November 24, 2015 02:46
-
-
Save ivanoats/fe55aabbd7ba97a5d1e9 to your computer and use it in GitHub Desktop.
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
pictureMath :: Int -> Int -> String | |
pictureMath x y = show minusPart ++ show plusPart | |
where | |
minusPart = x - y | |
plusPart = x + y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notes for non Haskellers:
show
converts an Integer to a String++
is the String concatenation operator