std-strlist->string


Synopsis

(std-strlist->string <strlst> <delim>)

Description

STD-STRLIST->STRING is almost the same as STD-STRJOIN, which combines a list of strings to a string seperated by a delimiter string. The only difference is that the strlst argument must be a list of strings.

It is the complement to STD-STRING->STRLIST, but a roundtrip
(std-strlist->string (std-string->strlist str d) d) may not return the same result because multiple whitespace and null tokens are deleted.

This function is also widely used in handling DCL list_box controls with multiple selections.

Examples

(std-strlist->string '("" "1" "2") ",") => ",1,2"
(std-strlist->string (mapcar 'std-string-capitalize

(std-string->strlist input ",;\t ")) " ") => capitalizes all words

Arguments

strlst: a list of strings.

delim: a string.

Return Value

A string.

Side Effects

None.

Module

(std-require 'STDSTR)

Defined in STDSTR