From 4fe86ecc74c1ea63b80125d1cdc83109ea13bd26 Mon Sep 17 00:00:00 2001 From: fordjm Date: Thu, 12 May 2016 10:23:12 -0500 Subject: [PATCH] Fixed a bug in 14_recursion.clj meditations (#105) * Fixes a bug that allows recursive-reverse to return '(1) for the base case. --- src/koans/14_recursion.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/koans/14_recursion.clj b/src/koans/14_recursion.clj index 4c39666..ca29784 100644 --- a/src/koans/14_recursion.clj +++ b/src/koans/14_recursion.clj @@ -33,7 +33,7 @@ (= '(1) (recursive-reverse [1])) "Yet it becomes more difficult the more steps you take" - (= '(5 4 3 2 1) (recursive-reverse [1 2 3 4 5])) + (= '(6 5 4 3 2) (recursive-reverse [2 3 4 5 6])) "Simple things may appear simple." (= 1 (factorial 1))