4 ms·
Here's one in Hy (a homoiconic frontend to Python... it really is just Python™): (require hy.contrib.anaphoric) (ap-each (range 1 101) (print (con
by agentultra 13y ago
Here's one in Hy (a homoiconic frontend to Python... it really is just Python™):
(require hy.contrib.anaphoric)
(ap-each (range 1 101)
(print (cond [(= (% it 15) 0) "Fizzbuzz"]
[(= (% it 5) 0) "Buzz"]
[(= (% it 3) 0) "Fizz"]
[True it])))
Reads pretty good too, doesn't it?
http://docs.hylang.org/en/latest/ http://docs.hylang.org/en/latest/