Skip to content

Instantly share code, notes, and snippets.

@ivanoats
Created November 24, 2015 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanoats/fe55aabbd7ba97a5d1e9 to your computer and use it in GitHub Desktop.
Save ivanoats/fe55aabbd7ba97a5d1e9 to your computer and use it in GitHub Desktop.
pictureMath :: Int -> Int -> String
pictureMath x y = show minusPart ++ show plusPart
where
minusPart = x - y
plusPart = x + y
@ivanoats
Copy link
Author

Notes for non Haskellers:

  • show converts an Integer to a String
  • ++ is the String concatenation operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment