我写了函数
(defun test ()
(let ((str1 "foo") (str2 "bar"))
(loop for s in '(str1 str2) do (message s))))
但它不起作用。Elisp回溯消息是:
调试器进入--Lisp 错误: (wrong-type-argument stringp str1)
我怎样才能让它工作?
PS:以下修改版本完美运行,但我需要原始版本
(defun test1 ()
(loop for s in '("asdf" "fdsa") do (message s)))