Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,6 +1 @@
|
|||
(def fizzbuzz (map
|
||||
#(cond (zero? (mod % 15)) "FizzBuzz"
|
||||
(zero? (mod % 5)) "Buzz"
|
||||
(zero? (mod % 3)) "Fizz"
|
||||
:else %)
|
||||
(iterate inc 1)))
|
||||
(map #(let [s (str (if (zero? (mod % 3)) "Fizz") (if (zero? (mod % 5)) "Buzz"))] (if (empty? s) % s)) (range 1 101))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue