|
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
[Prev in Thread] | Current Thread | [Next in Thread] |