Skip to content

Instantly share code, notes, and snippets.

@Diullei
Last active December 20, 2015 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Diullei/6100573 to your computer and use it in GitHub Desktop.
Save Diullei/6100573 to your computer and use it in GitHub Desktop.
FizzBuzz implementation using Haskell http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz
{-
FizzBuzz implementation using Haskell
http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz
-}
fizzBuzz = [
if x `mod` 3 == 0 then
"Fizz"
else
if x `mod` 5 == 0 then
"Buzz"
else
show x
| x <- take 100 [1..]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment