|
|
back to boardShow all messages Hide all messagesI'm only start to learn Haskell. I'm confused with std function and IO. My solution (does not work): main = do a <- getLine let b = sum map read words a // <- I try to use this functions putStrLn (show b) let b = words a // work, but let b = sum map (read::Int) words a //does not work Where I wrong? |
|
|