elisp - Loop over variables in Lisp -


I wrote a function

  (defun test (let ((str1 "foo "(Str2" bar ")) (for loop '(str1 str2) (message s)))))  

but it does not work. Ellisp backrace < / Em> is the message:

debugger entered - Lisp error: (wrong-type-argument stringp str1)

How do I work it

PS: The lower revised version works perfectly, but I need a basic version < / P>

  (defun test1 () ('(asdf "" fdsa ") (message s))  

Code> Excerpt operator (for which Apostrophe is syntactic sugar) means that its logic is not evaluated, i.e. (excerpt (str1 Str2). Two symbols . Instead use list : (list str1 str2) . .


Comments