On Fri, 2007-11-23 at 23:01 +0100, Roberto Zunino wrote:
> Maurí­cio wrote:
> > main = mapM_ ((putStrLn "") >*> putStrLn) $
> >           map show [1,2,3]
> 
> Using only standard combinators:
> 
> main = mapM_ ((putStrLn "" >>) . putStrLn) $ map show [1,2,3]

  == mapM_ ((putStrLn "" >>) . putStrLn . show) [1,2,3]

  == mapM_ ((putStrLn "" >>) . print) [1,2,3]

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to