[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (reduce #'or ...)



I agree it is a bad surprise to rediscover that OR is not a
function, it happens to me rather often.

These days I rely on things like:
    (some #'<predicate> <sequence>)
whenever I feel like doing 
    (reduce #'or (mapcar #'<predicate> <sequence>)) 
I hope that is more or less what you need.  (The <predicate>s need
not be the same, needless is to say the example above is not a
mechanical equivalence.)
 
=Cesar
--------
Cesar Augusto  Quiroz Gonzalez
 
Department of Computer Science     {allegra|seismo}!rochester!quiroz
University of Rochester            or
Rochester,  NY 14627               quiroz@cs.rochester.edu