Ackermann函數的我的理解

最近又從頭看起《SICP》,其中一道練習(1.10)裏提到了Ackermann函數,但定義彷佛有些不一樣。函數 lang=Scheme (define (A x y) (cond ((= y 0) 0) ((= x 0) (* 2 y)) ((= y 1) 2) (else (A (- x 1)
相關文章
相關標籤/搜索