[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apply
- To: paolo@idsia.ch (Paolo Cattaneo), info-mcl@cambridge.apple.com
- Subject: Re: Apply
- From: Robert A. Cassels <cassels@cambridge.apple.com>
- Date: Tue, 11 Aug 1992 12:23:19 -0400
>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).