Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
FizzBuzz(3の倍数ならFizz, 5の倍数ならBuzz, 15の倍数ならFizzBuzzに文字を置換する問題のアレ)
;; Shortest? FizzBuzz
(use srfi-1)
(let1 ? (.$ zero? (pa$ mod))
(.$ print (^i (cond [(? i 15) 'FizzBuzz]
[(? i 5) 'Buzz]
[(? i 3) 'Fizz]
[else i])))
(cdr (iota 101))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.