Talk:Haskell Quiz/FizzBuzz/Solution Ninju

From HaskellWiki
Revision as of 10:25, 25 January 2015 by Pharm (talk | contribs) (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?")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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

should do the trick I think?