Last active
November 9, 2020 09:06
-
-
Save viebel/564b99b1365d1966342ad0a0977b94b3 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
(defn fizzbuzz-clean [n] | |
(let [fizzes (cycle ["" "" "Fizz"]) | |
buzzes (cycle ["" "" "" "" "Buzz"]) | |
words (map str fizzes buzzes) | |
numbers (map str (rest (range)))] | |
(take n (map choice words numbers)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment