Code Review

Compare your solutions

    #| BEGIN (Write your solution here) |#
(define (accumulate combiner null-value term a next b)
  (define (iter result combiner term a next b)
    (if (> a b)
        result
        (iter (combiner result (term a)) combiner term (next a) next b)))
  (iter null-value combiner term a next b))
#| END |#