(define (area-of-disk r) (* 3.14 (* r r)))
(define area-of-disk (lambda (r) (cond ((* 3.14 (* r r)))))
Please explain how and when the utility of the second snippet would supersede that of the first.
Thanks for reading.
This post has been edited by LowWaterMark: 11 October 2008 - 03:47 AM

New Topic/Question
Reply



MultiQuote




|