Created
December 2, 2014 19:06
-
-
Save tkrs/af4b85ffbf69bfd1b0e5 to your computer and use it in GitHub Desktop.
FizzBuzz one-liner on Haskell.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f = zipWith3 (\a b c -> let x = b ++ c in if null x then show a else x) [1..] (cycle ["", "", "Fizz"]) (cycle ["", "", "", "", "Buzz"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment