All Manuals > LispWorks User Guide and Reference Manual > 40 The LISPWORKS Package

NextPrevUpTopContentsIndex

string-append*

Function
Summary

Constructs a single string from a list of strings.

Package

lispworks

Signature

string-append* strings => string

Arguments

strings

A list of string designators.

Values

string

A string.

Description

The function string-append* takes a list of string designators and constructs a single string from them.

Each of the elements of the strings argument is first coerced into a string using the function string if it is not already a string.

string is a string of the "widest" type amongst strings. That is, the constructed string is of the same type as the string with the largest element type amongst those supplied in the argument.

Example
(readtable-case *readtable*)
=> 
:UPCASE
 
(string-append* '("foo" bar))
=> 
"fooBAR"
 
(type-of 
 (string-append*
  (list (coerce "A" 'simple-base-string)
        (coerce "A" 'simple-text-string)
        )))
=> 
SIMPLE-TEXT-STRING
See also

string-append


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex