summaryrefslogtreecommitdiff
path: root/tests/mutual-recursion.lisp
blob: 02aa1bf56eb31e92f9ea88a982258c87ec434f4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(declare g)

(define f (n)
    (do
        (print "f" n)
        (if (<= 100 n) n (g (* 2 n)))))

(define g (n)
    (do
        (print "g" n)
        (if (<= 100 n) n (f (+ n 1)))))

(print (f 1))