test recursive definitions in let*
authorNicolas Boulenguez <nicolas.boulenguez@free.fr>
Sat, 25 May 2019 17:20:06 +0000 (19:20 +0200)
committerNicolas Boulenguez <nicolas.boulenguez@free.fr>
Sat, 25 May 2019 17:20:06 +0000 (19:20 +0200)
Detected while attempting to rewrite let* with fn*.

tests/step4_if_fn_do.mal

index 4507cfb..ef79805 100644 (file)
@@ -200,6 +200,11 @@ a
 ;;;;=>89
 
 
+;; Testing recursive function in environment.
+(let* [cst (fn* [n] (if (= n 0) nil (cst (- n 1))))] (cst 1))
+;=>nil
+
+
 ;>>> deferrable=True
 ;;
 ;; -------- Deferrable Functionality --------