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 \'(\"
A bit late to the party, but reduce works fine:
reduce
(reduce (lambda (acc x) (if (zerop (length acc)) x (concatenate 'string acc "&" x))) (list "name=slappy" "friends=none" "eats=dogpoo") :initial-value "")