elisp - concat of parts of list -
what missing?
as say: in every program bug.
(defun test-test () (interactive) (let ((lll (list "a" "b"))) (message (concat "<" (car lll) ":" (cdar lll) ">")) )) error:
concat: wrong type argument: listp, "a"
you've misspelled cadr :).
(defun test-test () (let ((lll (list "a" "b"))) (message (concat "<" (car lll) ":" (cadr lll) ">")))) also, don't need interactive, if don't plan call m-x
Comments
Post a Comment