mirror of
https://github.com/kanaka/mal.git
synced 2024-08-16 17:20:23 +03:00
Test mutual recursion in let*
This commit is contained in:
parent
8c0d5c4d72
commit
8150202bed
@ -203,6 +203,8 @@ a
|
||||
;; Testing recursive function in environment.
|
||||
(let* [cst (fn* [n] (if (= n 0) nil (cst (- n 1))))] (cst 1))
|
||||
;=>nil
|
||||
(let* [f (fn* [n] (if (= n 0) 0 (g (- n 1)))) g (fn* [n] (f n))] (f 2))
|
||||
;=>0
|
||||
|
||||
|
||||
;>>> deferrable=True
|
||||
|
Loading…
Reference in New Issue
Block a user