Why Nostr? What is Njump?
2024-11-17 02:26:35

screwtape on Nostr: I cannot say this is the easiest thing I have ever written. #lisp (defun fizzbuzz-of ...

I cannot say this is the easiest thing I have ever written. #lisp
(defun fizzbuzz-of (x)
(let* ((nos (scan-range))
(fizz-src (series 'fizz))
(buzz-src (series 'buzz))
(by3s (scan-range :from 0 :by 3))
(by5s (Scan-range :from 0 :by 5))
(fizzes (mask by3s))
(buzzes (mask by5s))
(fizz/buzzes (#Mlist (#Mand fizzes fizz-src)
(#Mand buzzes buzz-src))))
(or (collect (choose-if #'identity
(scan (collect-nth x fizz/buzzes))))
(list (collect-nth x nos)))))
Author Public Key
npub1n6w9sqrgjr37x83sdcs9rrerd9jlrk8wjajqzawhftacsa5603xs8krzel