FUNCALL Can Save CONSes

funcall can often save conses compared to the other forms:


(funcall #'+ x y)            0 conses
(eval (list '+ x y))         3 conses
(apply #'+ (list x y))       2 conses

Since cons is a fairly expensive operation, it is worth learning how to use the appropriate form.

Contents    Page-10    Prev    Next    Page+10    Index