; ======================================================================
;
; Structure and Interpretation of Computer Programs
; (trial answer to excercises)
;
; 计算机程序的构造和解释(习题试解)
;
; created: code17 08/20/05
; modified:
; (保持内容完整不变前提下,可以任意转载)
; ======================================================================
;; SICP No.2.45
(define (split op-main op-aux)
(define (common-split painter n)
(if (= n 0)
painter
(let ((smaller (common-split painter (- n 1))))
(op-main painter (op-aux smaller smaller)))))
common-split)