initializer expressions by a predefined list in "let"
Posted: Sun Jun 16, 2019 12:10 am
I think the following two examples of using "let" say the same thing but they get different result:
Example #1:
Example #2:
Why is the first example a wrong way using "let"? And is there a way to give initializer expressions of "let" with a predefined list as shown in the first example?
Example #1:
Code: Select all
(setq l '((a 1) (b 2)))
(let l (+ a b)) ;; ERR: invalid let parameter list in function let : l
Code: Select all
(let ((a 1) (b 2)) (+ a b)) ;; get 3 as expected