FizzBuzz in Haskell
ptrelford Oct 7th, 2014 306 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- map (\x -> case (mod x 3, mod x 5) of (0,0) -> "FizzBuzz"; (0,_) -> "Fizz"; (_,0) -> "Buzz"; _ -> show x) [1..100]
RAW Paste Data