SHARE
TWEET

FizzBuzz in Haskell

ptrelford Oct 7th, 2014 306 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top