Created
October 18, 2018 19:33
-
-
Save deepakduggirala/f76fb7279d02baa8929eb83d5343b623 to your computer and use it in GitHub Desktop.
Haskell IO - Read a number per line
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
f = id | |
main = do | |
inputdata <- getContents | |
mapM_ (putStrLn. show). f. map read. lines $ inputdata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment