Skip to content

Instantly share code, notes, and snippets.

@morris555
Created March 31, 2012 11:21
Show Gist options
  • Save morris555/2262375 to your computer and use it in GitHub Desktop.
Save morris555/2262375 to your computer and use it in GitHub Desktop.
putStrLn $ show $ map (let fizzBuzz x | 0 == (x `mod` 3) && 0 == (x `mod` 5) = "FizzBuzz" | 0 == (x `mod` 3) = "Fizz" | 0 == (x `mod` 5) = "Buzz" | otherwise = show x in fizzBuzz) [1..100]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment