1 ;; Testing recursive tail-call function
3 (def! sum2 (fn* (n acc) (if (= n 0) acc (sum2 (- n 1) (+ n acc)))))
5 ;; TODO: test let*, and do for TCO
12 (def! res2 (sum2 10000 0))
17 ;; Test mutually recursive tail-call functions
19 (def! foo (fn* (n) (if (= n 0) 0 (bar (- n 1)))))
20 (def! bar (fn* (n) (if (= n 0) 0 (foo (- n 1)))))