summaryrefslogtreecommitdiff
path: root/benchmark/other-lang/tak.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/other-lang/tak.rb')
-rw-r--r--benchmark/other-lang/tak.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/benchmark/other-lang/tak.rb b/benchmark/other-lang/tak.rb
index d70d5db8f8..efe5380f4e 100644
--- a/benchmark/other-lang/tak.rb
+++ b/benchmark/other-lang/tak.rb
@@ -1,13 +1,13 @@
-
-def tak x, y, z
- unless y < x
- z
- else
- tak( tak(x-1, y, z),
- tak(y-1, z, x),
- tak(z-1, x, y))
- end
-end
-
-tak(18, 9, 0)
-
+
+def tak x, y, z
+ unless y < x
+ z
+ else
+ tak( tak(x-1, y, z),
+ tak(y-1, z, x),
+ tak(z-1, x, y))
+ end
+end
+
+tak(18, 9, 0)
+