Talk:Haskell Quiz/FizzBuzz/Solution Ninju
Add topicYou can condense that rather complicated printAll function with a simple mapM_ :
main = mapM_ (putStrLn . fizzbuzz) [0..100]
should do the trick I think?
You can condense that rather complicated printAll function with a simple mapM_ :
main = mapM_ (putStrLn . fizzbuzz) [0..100]
should do the trick I think?