Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

练习1.10 #39

Open
KushNee opened this issue May 26, 2015 · 0 comments
Open

练习1.10 #39

KushNee opened this issue May 26, 2015 · 0 comments

Comments

@KushNee
Copy link

KushNee commented May 26, 2015

不知道什么原因,书中示例和维基百科上关于阿克曼函数的定义是不一致的。我修改了代码,但是不知道是否正确,希望能有人看一下。

(define (A x y)
    (cond ((= y 0) (A (- x 1) 1))
        ((= x 0) (+ y 1))
        (else (A (- x 1) (A x (- y 1)))))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant