Talk:Haskell Quiz/FizzBuzz/Solution Ninju

Add topic
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)

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

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

should do the trick I think?