Created
December 21, 2015 04:31
-
-
Save Qata/a50f940c3b41b4269ca2 to your computer and use it in GitHub Desktop.
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
let numbers = map show [1..100] | |
let fizzes = cycle $ (take 4 $ repeat "") ++ ["FIZZ"] | |
let buzzes = cycle $ (take 2 $ repeat "") ++ ["BUZZ"] | |
let fizzbuzzes = zipWith (++) fizzes buzzes | |
zipWith (max) numbers fizzbuzzes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment