Re: to (or not to) lambda
- From: Barry Margolin <barmar@xxxxxxxxxxxx>
- Date: Mon, 02 Oct 2006 20:58:03 -0400
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 ***
.
- References:
- to (or not to) lambda
- From: Xcriber51
- Re: to (or not to) lambda
- From: Kaz Kylheku
- to (or not to) lambda
- Prev by Date: Re: a potential lisp convert, and interpreting the shootout
- Next by Date: Re: performance and eloquence
- Previous by thread: Re: to (or not to) lambda
- Next by thread: Re: to (or not to) lambda
- Index(es):