aegwenia/jik/tail-recursion
Frontier
Unlock 90
Ideal 105
CC0 1.0
Tail recursion as loops
Express bounded loops with tail calls; the VM reuses its invocation loop instead of growing Python frames.
Acquire to open
Theory, examples, assessment, and private test answers stay inside the acquired repository copy.
Log in to acquirePublic source
Released under CC0 by the five-year publication rule.
(begin (define (sum n acc) (if (= n 0) acc (sum (- n 1) (+ acc n)))) (sum 40 0))