4 ms·
Hey Grok: Write commonlisp macro "test", which is usually an addition, but when two parameters are already numbers, it is the sum of those numbers. (defmacr
by timonoko 1y ago
Hey Grok: Write commonlisp macro "test", which is usually an addition, but when two parameters are already numbers, it is the sum of those numbers.
(defmacro test (a b)
(if (and (numberp a) (numberp b))
(+ a b)
`(+ ,a ,b)))