|
|
||
|
That would be: http://mitpress.mit.edu/sicp/full-text/book/book-Z- H-10.html#%25_thm_1.4
<<Exercise 1.4. Observe that our model of evaluation allows for combinations whose operators are compound expressions. Use this observation to describe the behavior of the following procedure:
(define (a-plus-abs-b a b) ((if (> b 0) + -) a b)) << ...and the point was...? Gavin Wraith kirjoitti 25.10.2006 kello 22.06:
In message <[email protected]>you wrote:-- Like C/Perl "cond ? a : b" operator, done using Lua scripts.maybe it's obvious, but one difference is that unlike C and Perl, tricond always evaluates both expressions? also, tricond doesn't seem to allow false and nil as the value of either expression?See Exercise 1.4 in SICP. -- Gavin Wraith ([email protected]) Home page: http://www.wra1th.plus.com/