summaryrefslogtreecommitdiff
path: root/tests/sumrec.bth
blob: 8c8804ab250da8dc6d18bde72960442a8058b5d4 (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 100))