summaryrefslogtreecommitdiff
path: root/tests/sumrec_local.bth
blob: e81eeb9ccc3531247ee906d10c953337e7db4d7e (plain)
1
2
3
4
5
6
7
8
(defn (f' x acc)
	(if (< x 1)
		acc
		(f' (- x 1) (+ acc x))))
(set! _global_f' f')
(defn (f x) (_global_f' x 0))
(say (f 10))
(say (f 1000))