[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (reduce #'or ...)
- To: larus@paris.Berkeley.EDU (James Larus)
 
- Subject: Re: (reduce #'or ...)
 
- From: quiroz@rochester.arpa
 
- Date: Mon, 27 Apr 87 16:37:18 -0500
 
- Cc: common-lisp@sail.stanford.edu
 
- In-reply-to: Your message of Mon, 27 Apr 87 12:06:52 PDT.             <8704271906.AA22811@paris.Berkeley.EDU>
 
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