标签:efi fine else sci def 习题 define cond 意思
(define (A x y)
(cond ((= y 0) 0)
((= x 0) (* 2 y))
((= y 1) 2)
(else (A (- x 1)
(A x (- y 1))))))
(A 1 10)
(A 2 4)
(A 3 3)
(define (f n)
(A 0 n))
(f 0)
(f 1)
(f 2)
(f 3)
没搞懂这题有什么意思
标签:efi fine else sci def 习题 define cond 意思
原文地址:http://www.cnblogs.com/R4mble/p/7880994.html