I am really uncomfortable writing code that I can't run ... it would be nice if the authors could have come up with an example that didn't assume the presence of other code or libraries. As it is, I'm having a bit of trouble figuring out how this works.
(define(up-split painter n)(cond((= n 0) painter)(else(let((smaller (up-split painter (- n 1))))(below painter (beside smaller smaller))))))
I am really uncomfortable writing code that I can't run ... it would be nice if the authors could have come up with an example that didn't assume the presence of other code or libraries. As it is, I'm having a bit of trouble figuring out how this works.
(define (up-split painter n) (cond ((= n 0) painter) (else (let ((smaller (up-split painter (- n 1)))) (below painter (beside smaller smaller))))))