Re: to (or not to) lambda



In article <1159820623.925696.141080@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Kaz Kylheku" <kkylheku@xxxxxxxxx> wrote:

Xcriber51 wrote:
When I write this:

(remove-if #'(lambda (x) (> x 5)) '(3 5 4 6 1 1 8 2))

I get the message:

error: not a function <etc.>

However, when I do it this way:

(defun gt-five (x) (> x 5))
(remove-if #'gt-five '(3 5 4 6 1 1 8 2))

it works, and I get:

(3 5 4 1 1 2)

Can anybody tell me what's going on?

Possibly this: CL:REMOVE-IF and CL:> are in the current package, but
CL:LAMBDA has not been imported, or is shadowed by a different symbol.

To test this, what does

(eq 'lambda 'cl:lambda)

return?

--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.