I wrote a function
(defun test ()
(let ((str1 "foo") (str2 "bar"))
(loop for s in '(str1 str2) do (message s))))
but that will not work. Elisp Backtrace Post:
Debugger introduced - Lisp error: (invalid argument type stringp str1)
How can I make it work?
PS: the next modified version works fine, but I need the original version
(defun test1 ()
(loop for s in '("asdf" "fdsa") do (message s)))
source
share