if does not evaluate
Jacek Generowicz
jacek.generowicz at cern.ch
Fri Jun 11 03:09:23 EDT 2004
moughanj at tcd.ie (James Moughan) writes:
> Now, how to do this in Lisp. There are several functions for applying
> a function to the elements of a list to select them, though AFAIK none
> specifically for our purpose. I may very well be wrong there
> o'course. One way is:
>
> (define has-element (cond list)
> (equal () (member-if #'cond list))))
(some #'cond list)
> We have to have a rather arbitrary #' funcall and syntax to stop a
> function evaluating long enough to shift it to where it's useful.
What on earth are you talking about ?
More information about the Python-list
mailing list