标签:ext def result efi com lam define fine term
(define (accumulate combiner null-value term a next b) (define (iter a result) (if (> a b) result (iter (next a) (combiner (term a) result)))) (iter a null-value)) (define (sum term a next b) (accumulate + 0 term a next b)) (define (product term a next b) (accumulate * 1 term a next b)) (sum (lambda (x) x) 1 (lambda (i) (+ i 1)) 10)
标签:ext def result efi com lam define fine term
原文地址:http://www.cnblogs.com/R4mble/p/7893254.html