Logo

Programming-Idioms

History of Idiom 53 > diff from v30 to v31

Edit summary for version 31 by :
New Lisp implementation by user [nklein]

Version 30

2016-02-16, 18:59:57

Version 31

2016-02-16, 19:23:26

Idiom #53 Join a list of strings

Concatenate elements of string list x joined by the separator ", " to create a single string y.

Idiom #53 Join a list of strings

Concatenate elements of string list x joined by the separator ", " to create a single string y.

Code
(setf y (format nil "~{~a~^,~}" x))
Doc URL
http://www.lispworks.com/documentation/HyperSpec/Body/22_cib.htm
Origin
http://www.gigamonkeys.com/book/a-few-format-recipes.html