Skip to content

Instantly share code, notes, and snippets.

@korolr
Created February 17, 2019 14:03
Show Gist options
  • Save korolr/d855729703713d8124ba140a20f26961 to your computer and use it in GitHub Desktop.
Save korolr/d855729703713d8124ba140a20f26961 to your computer and use it in GitHub Desktop.
BurlywoodPlasticApi created by korolr - https://repl.it/@korolr/BurlywoodPlasticApi
import Data.Char
twoDigits2Int :: Char -> Char -> Int
twoDigits2Int x y = read $ x:y:[] :: Int
main :: IO ()
main = print $ twoDigits2Int '4' '2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment