Difference between revisions of "Talk:Haskell Quiz/FizzBuzz/Solution Ninju"

From HaskellWiki
Jump to navigation Jump to search
(Created page with "You can condense that rather complicated printAll function with a simple mapM_ : main = mapM_ (putStrLn . fizzbuzz) [0..100] should do the trick I think?")
 
(No difference)

Latest revision as of 10:25, 25 January 2015

You can condense that rather complicated printAll function with a simple mapM_ :

   main = mapM_ (putStrLn . fizzbuzz) [0..100]

should do the trick I think?