what's wrong with the use of apply append
Posted: Tue Sep 03, 2019 6:26 am
First example:
Second example:
I think the two examples are equivalent, but it seems not. Why? And why the first example is a wrong way to use "append" and how to make "apply append" work?
Code: Select all
(setq var "b")
(apply append '("a" var)) ;; I believe the result will be "ab", but what I get is error message.
Code: Select all
(setq var "b")
(append "a" var);; -> "ab"