Logo

Programming-Idioms

History of Idiom 120 > diff from v8 to v9

Edit summary for version 9 by :
New Haskell implementation by user [JH]

Version 8

2016-02-15, 12:13:53

Version 9

2016-02-16, 19:09:41

Idiom #120 Read integer from stdin

Read an integer value from the standard input into variable n.

Idiom #120 Read integer from stdin

Read an integer value from the standard input into variable n.

Code
n <- (read :: String -> Int) <$> getContents