3 ms·
In Lisp, "let" is only used for binding the variable, and it comes with a scope. (let ((a 1) (b 2)) (+ a b)) It's closer to the ML version of le
by trealira 3y ago
In Lisp, "let" is only used for binding the variable, and it comes with a scope.
(let ((a 1)
(b 2))
(+ a b))
It's closer to the ML version of let, which works like this:
let
val a = 1
val b = 2
in
a + b
end
You can sequence expressions for side effects, as well.
(let ((a 1)
(b 2))
(incf a)
(do-it a b)
(+ a b))