Advertisement
ptrelford

FizzBuzz in Haskell

Oct 7th, 2014
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. map (\x -> case (mod x 3, mod x 5) of (0,0) -> "FizzBuzz"; (0,_) -> "Fizz"; (_,0) -> "Buzz";  _ -> show x) [1..100]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement