All Manuals > LispWorks® User Guide and Reference Manual > 33 The COMMON-LISP Package

make-string Function

Summary

Creates and returns a string.

Package

common-lisp

Signature

make-string size &key initial-element element-type => string

Arguments
size
A non-negative integer.
initial-element
A character. The default is implementation-dependent.
element-type
A type specifier. The default is defined below.
Values
string
A string.
Description

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.

See also

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