Open almsanac opened 7 years ago
Surely (notevery #'numberp arglist)
or even (some (complement #'numberp) arglist)
beats (some #'(lambda (n) (not (numberp n))) arglist)
in the example at http://ccl.clozure.com/docs/ccl.html#advising which reads
(advise foo (if (some #'(lambda (n) (not (numberp n))) arglist)
0
(:do-it))
:when :around :name :zero-if-not-nums)
The documentation for
advise
([http://ccl.clozure.com/docs/ccl.html#advising]) is buggy. Instead ofarglist
both examples should say(car arglist)
.