Re: possibly silly question re quoting of function arguments...
- From: "birlinn@xxxxxxxxx" <birlinn@xxxxxxxxx>
- Date: 28 Apr 2006 08:21:22 -0700
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
.
- Follow-Ups:
- Re: possibly silly question re quoting of function arguments...
- From: jayessay
- Re: possibly silly question re quoting of function arguments...
- From: Don Geddis
- Re: possibly silly question re quoting of function arguments...
- From: Peter Seibel
- Re: possibly silly question re quoting of function arguments...
- References:
- possibly silly question re quoting of function arguments...
- From: birlinn@xxxxxxxxx
- Re: possibly silly question re quoting of function arguments...
- From: Peter Seibel
- possibly silly question re quoting of function arguments...
- Prev by Date: Re: Xah's Edu Corner: Criticism vs Constructive Criticism
- Next by Date: Re: Decreasing the "standard deviation" of lisp
- Previous by thread: Re: possibly silly question re quoting of function arguments...
- Next by thread: Re: possibly silly question re quoting of function arguments...
- Index(es):
Relevant Pages
|
|