The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
3answers
170 views

How can I improve this Haskell code?

This code solves the problem of FizzBuzz. Is it possible in any way to improve it? main = main' 1 where main' n = do (putStrLn . choose) (show n, "Fizz", "Buzz", "FizzBuzz", n) if n < 100 ...
4
votes
4answers
249 views

What do you think of my Recursive FizzBuzz?

I wanted to see if I fully understood recursion so I attempted the FizzBuzz challenge and applied recursion to it. Did I do it correctly? Is this good code? Is there a more efficient way of doing ...