理系学生日記

おまえはいつまで学生気分なのか

問題1-32(b)

accumulate再帰的プロセスばん。

(define (accumulate-recursive combiner null-value term a next b)
  (if (> a b)
      null-value
      (combiner (term a)
		(accumulate-recursive combiner null-value term (next a) next b))))