logoalt Hacker News

CodeArtisanyesterday at 10:31 PM1 replyview on HN

Shouldn't it be (+ a (apply + b))


Replies

db48xyesterday at 11:48 PM

Almost. It should be (+ a (apply #'+ b)). Common Lisp is a Lisp-2, so a + in the argument position is assumed to be a variable named +, not the function named +, unless you specify otherwise.