home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!rutgers!igor.rutgers.edu!romulus.rutgers.edu!adrian
- From: adrian@romulus.rutgers.edu (Adrian Rodriguez)
- Newsgroups: comp.lang.scheme
- Subject: Re: applying or
- Message-ID: <Dec.27.23.02.00.1992.20306@romulus.rutgers.edu>
- Date: 28 Dec 92 04:02:00 GMT
- References: <BztJDI.1J1@malihh.hanse.de> <BztyDu.KDE@cs.psu.edu> <1hg6ofINN7ev@agate.berkeley.edu>
- Organization: Rutgers Univ., New Brunswick, N.J.
- Lines: 15
- Cc: adrian
-
- > Another reason is just efficiency. If you see an expression like
-
- > (or (= 2 (+ 1 1)) (prime? 184893479827823480745907830796137))
-
- > you can save a lot of time by noticing that the first clause is true.
-
- oaklisp> (/ 184893479827823480745907830796137 3)
- 61631159942607826915302610265379
-
- Well, maybe not on *this* particular expression, but generally, yes.
-
-
- Regards,
-
- adrian
-