summaryrefslogtreecommitdiff
path: root/benchmark/other-lang/ack.scm
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-12 23:01:19 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-12 23:01:19 +0000
commitfd81221a8e2c3a8c77599602fe38cd563d86191d (patch)
tree47faf15269b927feb9e4b13fe2d09a51dae4ddfd /benchmark/other-lang/ack.scm
parent1a4b93cf920d0850061ce4b53351b4cdc7d464c7 (diff)
set svn:eol-style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/other-lang/ack.scm')
-rw-r--r--benchmark/other-lang/ack.scm14
1 files changed, 7 insertions, 7 deletions
diff --git a/benchmark/other-lang/ack.scm b/benchmark/other-lang/ack.scm
index e9e1886933..a80b73ba55 100644
--- a/benchmark/other-lang/ack.scm
+++ b/benchmark/other-lang/ack.scm
@@ -1,7 +1,7 @@
-(define (ack m n)
- (cond ((zero? m) (+ n 1))
- ((zero? n) (ack (- m 1) 1))
- (else (ack (- m 1) (ack m (- n 1))))))
-
-(ack 3 9)
-
+(define (ack m n)
+ (cond ((zero? m) (+ n 1))
+ ((zero? n) (ack (- m 1) 1))
+ (else (ack (- m 1) (ack m (- n 1))))))
+
+(ack 3 9)
+