repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
r18455 reverted.
[ruby-svn.git]
/
benchmark
/
other-lang
/
ack.scm
blob
a80b73ba55a63f99843ff3057fcd35cc858ec8c9
1
(define (ack m n)
2
(cond ((zero? m) (+ n 1))
3
((zero? n) (ack (- m 1) 1))
4
(else (ack (- m 1) (ack m (- n 1))))))
5
6
(ack 3 9)
7