if does not evaluate
moughanj at tcd.ie
Sat Jun 12 06:55:02 CEST 2004
Jacek Generowicz <jacek.generowicz at cern.ch> wrote in message news:<tyfaczabmfw.fsf at pcepsft001.cern.ch>...
> 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)
Fair-nuff; I K'ed incorrectly.
> > 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 ?
Quoting #' a function.
More information about the Python-list