I have a scheme related question, how can we implement let* as a lambda expression. To be more precise, I am not wondering about the "regular" let, but the let with * which lets us use one let expression within another.
The let*
form is a series of nested lambda
s. For example, this:
(let* ((a 10)
(b (+ 10 a)))
(+ a b))
Is equivalent to this:
((lambda (a)
((lambda (b)
(+ a b))
(+ 10 a)))
10)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With