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

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -