
23 Nov
2007
23 Nov
'07
4:20 p.m.
main :: IO () main = mapM_ ((putStrLn "") >*> putStrLn) $ map show [1,2,3]
A couple other ways to do this code. Without monad combinators main = mapM_ putStrLn . ("":) . intersperse "" . map show $ [1..3] With your combinator, but collapsing it so we don't map over the collection twice. main = mapM_ ((putStrLn "") >*> print) $ [1..3] - Hitesh