1.32

secje posted @ 2010年7月10日 05:58 in sicp , 1421 阅读
(define (accumulate combiner null-value  term a next b)
  (if (> a b)
      null-value
      (combiner (term a)
                (accumulate combiner null-value term (next a) next b))))
(define (sum term a next b)
  (accumulate + 0 term a next b))
(define (product term a next b)
  (accumulate * 1 term a next b))
(define (accumulate-iter 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-iter term a next b)
  (accumulate-iter + 0 term a next b))
(define (product-iter term a next b)
  (accumulate-iter * 1 term a next b))
Maha 10th Important 说:
2022年8月23日 18:17

Maharashtra SSC Question Paper 2023 Download – Maha 10th Important Question Paper 2023 PDF, SSC Question Paper 2023 Maharashtra Board, Maharashtra, Maha 10th Important Question Paper 2023 PDF Directorate of Government Examination has been released the Important Question Paper for Secondary School Leaving Certificate Class 10. The SSC examination is set to begin from 1st week of March to last week of March 2023.Maharashtra SSC Question Paper 2023 Download – Maha 10th Important Question Paper 2023 PDF, SSC Question Paper 2023 Maharashtra Board.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter