Created
December 17, 2011 11:24
-
-
Save omegatakuma/1489986 to your computer and use it in GitHub Desktop.
getLineのString -> Intで出力する関数
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
sum x = (read :: String -> Int) x | |
getInt = do m <- getLine ; return (sum m) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment