home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / emacs / help / 3535 < prev    next >
Encoding:
Text File  |  1992-07-28  |  971 b   |  24 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!stanford.edu!CSD-NewsHost.Stanford.EDU!crew
  3. From: crew@CS.Stanford.EDU (Roger Crew)
  4. Subject: Re: 2 Elisp questions
  5. In-Reply-To: jf41+@andrew.cmu.edu's message of 28 Jul 92 06:06:33 GMT
  6. Message-ID: <1992Jul28.230747.865@CSD-NewsHost.Stanford.EDU>
  7. Sender: news@CSD-NewsHost.Stanford.EDU
  8. Organization: Stanford University Computer Science Dept.
  9. References: <8eRCDdO00VpA4D6Rgt@andrew.cmu.edu>
  10. Date: Tue, 28 Jul 1992 23:07:47 GMT
  11. Lines: 11
  12.  
  13. In article <8eRCDdO00VpA4D6Rgt@andrew.cmu.edu> jf41+@andrew.cmu.edu (Jonathan R. Ferro) writes:
  14. > 2. Is there REALLY no built-in function that you can apply to a list of
  15. >    t's and nil's to get their collective AND or OR?  I eventually broke
  16. >    down and wrote my own, but this is surprising.
  17.  
  18. (apply 'and lst) == (not (memq nil lst))
  19. (apply 'or  lst) == (memq t lst)
  20.  
  21. --
  22. Roger Crew      OBEY     MARRY AND REPRODUCE      CONSUME      STAY ASLEEP
  23. Internet:  crew@CS.Stanford.EDU      
  24.