You are viewing a single comment's thread. Return to all comments →
That's still ugly, IMO. Here's my runner:
readInt x = read x :: Int main = putStr . unlines . run . (map readInt) . words =<< getContents
From run, you can just work with pure functions like the Haskell gods intended.
Seems like cookies are disabled on this browser, please enable them to open this website
Functions or Not?
You are viewing a single comment's thread. Return to all comments →
That's still ugly, IMO. Here's my runner:
From run, you can just work with pure functions like the Haskell gods intended.