ptrelford

FizzBuzz in Haskell

Oct 7th, 2014
371
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]
RAW Paste Data