Fixed a bug in 14_recursion.clj meditations (#105)

* Fixes a bug that allows recursive-reverse to return '(1) for the base case.
This commit is contained in:
fordjm 2016-05-12 10:23:12 -05:00 committed by Colin Jones
parent e8526b704c
commit 4fe86ecc74

View File

@ -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))