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

* Fixes a bug that allows recursive-reverse to return '(1) for the base case.
master
fordjm 8 years ago committed by Colin Jones
parent e8526b704c
commit 4fe86ecc74

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

Loading…
Cancel
Save