Alessio Duè
banner
alsd.eu
Alessio Duè
@alsd.eu
University of Pisa CS graduate
Scheme has "named lets" that work like this:

(let loop ((i 0))
(println i)
(loop (+ i 1)))

You can use whatever name and arguments you like instead of loop and i.

See e.g. docs.racket-lang.org/reference/le... (from "The second form...")
3.9 Local Binding: let, let*, letrec, ...
docs.racket-lang.org
November 11, 2024 at 8:17 AM