car v/s first
- From: "rich" <amit_h123@xxxxxxxxxxx>
- Date: 28 Feb 2006 00:36:14 -0800
Hello all,
I am using the following code for some checking as ;
(defun validator (pat lst pattern-lst)
(cond
((null pattern-lst) T)
((AND(Equal (first pat) (first (first pattern-lst)))
(Equal (first lst)(second (first pattern-lst))))
T )
((Equal (first pat) (first (first pattern-lst))) nil)
(T(validator pat lst (cdr pattern-lst)))))
and the values for various parameters are
pat=(?x)
lst=(b)
patter-lst= (?x b)
now when i use the car and cdr functions in place of first and second
fucntions which i hve used in the code it gives me nil otherwise its
works fine findin the duplicates..if present.
Why is that so? are the car and first behave differently at times.. or
i am missing smthin ...
thanks
.
- Follow-Ups:
- Re: car v/s first
- From: Kaz Kylheku
- Re: car v/s first
- From: Pascal Costanza
- Re: car v/s first
- Prev by Date: HTML/DOM parser
- Next by Date: Re: HTML/DOM parser
- Previous by thread: HTML/DOM parser
- Next by thread: Re: car v/s first
- Index(es):
Relevant Pages
|