Re: possibly silly question re quoting of function arguments...



Hi,

i want a predicate function that tells me whether a given list is of x
or y (e.g. myvar-x1 or myvar-y1) without having to quote the argument i
pass to the function...

you misread my post (my fault for the way i wrote it probably!):

----
(defun dest-is-xvar-p (list)
(eql list myvar-x1))

such that:

(dest-is-xvar-p myvar-x1)

returns true.
----

with the above, dest-is-xvar-p returns true for any empty list...

what i'm looking for is an sensible way to make it distinguish between
myvar-x1
and myvar-y1 without having to quote the function argument...

Hope this is clearer?

cheers,

B

.



Relevant Pages