sicp-ex-2.44



<< Previous exercise (2.42) | Index | Next exercise (2.45) >>


jz

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)))))) 
  

dudrenov

The gimp comes with a scheme interpreter. Perhaps you can try it there. For me print was good enough.