-
-
Save lyricallogical/1275549 to your computer and use it in GitHub Desktop.
コンパイル通るか知りません こんな感じのほうが人間に優しいのでは…!
This file contains hidden or 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
fizzbuzz = zipWith max (map show [0..]) fb | |
where | |
fb = zipWith (++) f b | |
f = cycle ["Fizz", "", ""] | |
b = cycle ["Buzz", "", "", "", ""] | |
main = mapM_ putStrLn $ tail $ fizzBuzz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ほんとですね、うっかりしてました。