help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Problem with position and find (cl)


From: Marc Tfardy
Subject: Re: Problem with position and find (cl)
Date: Fri, 20 Jun 2008 21:58:25 +0200
User-agent: Thunderbird 2.0.0.14 (Windows/20080421)

Marc Tfardy schrieb:
I try with:
(member '(2) '((1) (2) (3) (4)))

and this gives a expectet results ((2) (3) (4)), but:
(find '(2) '((1) (2) (3) (4)))
or
(position '(2) '((1) (2) (3) (4)))

returns nil. Why?

But this works:

(position '(2) '((1) (2) (3) (4)) :test (lambda (x y) (eq (car x) (car y))))

Maybe position and find (and maybe some others functions)
can not compare lists directly?

Marc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]