add ch1 ex6
This commit is contained in:
parent
aefd22c449
commit
b71c505381
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@
|
|||
|
||||
;--------------------------------------------------------------------------------------------------------------------------
|
||||
;ex_6
|
||||
;Alyssa P. Hacker doesn’t see why if needs to be provided as a special form. “Why can’t I just define it as an ordinary procedure in terms of cond?” she asks. Alyssa’s friend Eva Lu Ator claims this can indeed be done, and she defines a new version of if:
|
||||
;Alyssa P. Hacker doesn’t see why if needs to be provided as a special form. “Why can’t I just define it as an ordinary procedure in terms of cond?” she asks. Alyssa’s friend Eva claims this can indeed be done, and she defines a new version of if:
|
||||
;(define (new-if predicate then-clause else-clause)
|
||||
; (cond (predicate then-clause)
|
||||
; (else else-clause))
|
||||
|
|
Loading…
Add table
Reference in a new issue