From f701bd90a849bfce2feee85eb66c5ddfc508d35e Mon Sep 17 00:00:00 2001 From: fordjm Date: Mon, 29 Feb 2016 12:27:53 -0600 Subject: [PATCH] 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))