home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.scheme
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!mintaka.lcs.mit.edu!zurich.ai.mit.edu!jaffer
- From: jaffer@zurich.ai.mit.edu (Aubrey Jaffer)
- Subject: Re: applying or
- In-Reply-To: clu@malihh.hanse.de's message of 25 Dec 92 14:10:29 GMT
- Message-ID: <JAFFER.93Jan1230751@camelot.ai.mit.edu>
- Sender: news@mintaka.lcs.mit.edu
- Organization: M.I.T. Artificial Intelligence Lab.
- References: <BztJDI.1J1@malihh.hanse.de>
- Date: Sat, 2 Jan 1993 04:07:51 GMT
- Lines: 12
-
- An applicable version of or is defined in comlist.scm in SLIB. The
- definitions follow:
-
- (define (and? . args)
- (cond ((null? args) #t)
- ((car args) (apply and? (cdr args)))
- (else #f)))
-
- (define (or? . args)
- (cond ((null? args) #f)
- ((car args) #t)
- (else (apply or? (cdr args)))))
-