I want to convert (\"USERID=XYZ\" \"USERPWD=123\") to \"USERID=XYZ&USERPWD=123\". I tried
(\"USERID=XYZ\" \"USERPWD=123\")
\"USERID=XYZ&USERPWD=123\"
(apply #\'concatenate \'string \'(\"
Use FORMAT.
~{ and ~} denote iteration, ~A denotes aesthetic printing, and ~^ (aka Tilde Circumflex in the docs) denotes printing the , only when something follows it.
~{
~}
~A
~^
* (format nil "~{~A~^, ~}" '( 1 2 3 4 )) "1, 2, 3, 4" *