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