Is there a function in Emacs Lisp that does the opposite of split-string
, i.e. joins the elements of a list into string delimited by a given delimiter? In other words, is there a function that given a list, e.g. ("foo" "bar" "baz")
, and a delimiter, e.g. ", "
, returns that list as a string delimited by that delimiter, e.g. "foo, bar, baz"
.
Common Lisp seems to have such a function but the function with the same name in Emacs Lisp, format
, is a wholly different function.