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