home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / scheme / 2833 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  830 b 

  1. Path: sparky!uunet!cs.utexas.edu!rutgers!igor.rutgers.edu!romulus.rutgers.edu!adrian
  2. From: adrian@romulus.rutgers.edu (Adrian Rodriguez)
  3. Newsgroups: comp.lang.scheme
  4. Subject: Re: applying or
  5. Message-ID: <Dec.27.23.02.00.1992.20306@romulus.rutgers.edu>
  6. Date: 28 Dec 92 04:02:00 GMT
  7. References: <BztJDI.1J1@malihh.hanse.de> <BztyDu.KDE@cs.psu.edu> <1hg6ofINN7ev@agate.berkeley.edu>
  8. Organization: Rutgers Univ., New Brunswick, N.J.
  9. Lines: 15
  10. Cc: adrian
  11.  
  12. > Another reason is just efficiency.  If you see an expression like
  13.  
  14. >     (or (= 2 (+ 1 1)) (prime? 184893479827823480745907830796137))
  15.  
  16. > you can save a lot of time by noticing that the first clause is true.
  17.  
  18. oaklisp> (/ 184893479827823480745907830796137 3)
  19. 61631159942607826915302610265379
  20.  
  21. Well, maybe not on *this* particular expression, but generally, yes.
  22.  
  23.  
  24. Regards,
  25.  
  26. adrian
  27.