Creates and returns a string.
common-lisp
make-string size &key initial-element element-type => string
size⇩ |
A non-negative integer. |
initial-element⇩ |
A character. The default is implementation-dependent. |
element-type⇩ |
A type specifier. The default is defined below. |
string |
A string. |
The function make-string
behaves as specified in the ANSI Common Lisp Standard with one exception: the default value of element-type is the value of *default-character-element-type* or the type of initial-element if that is a supertype of *default-character-element-type*.
Therefore for strict compliance you must call set-default-character-element-type to set the default string element type to character.
size is used as specified by ANSI Common Lisp.
make-string in the Common Lisp HyperSpec
*default-character-element-type*
set-default-character-element-type
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:30