[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apply



>The following line used to evaluate correctly
>on MCL2.0b1 but does not in MCL2.0f. Why?
>
>(apply `(lambda (x) (* x x)) '(2))

You need to use FUNCTION:

(apply (function (lambda (x) (* x x))) '(2))

or

(apply #'(lambda (x) (* x x)) '(2))

See pp. 102-103 of CLtL II (functionp is no longer true of symbols or
lists).