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:
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…
Reference in New Issue
Block a user