User Tools


Function MAKE-STRING

Syntax

make-string size &key initial-element element-typestring

Arguments and Values

Description

make-string returns a simple string of length size whose elements have been initialized to initial-element.

The element-type names the type of the elements of the string; a string is constructed of the most specialized type that can accommodate elements of the given type.

Examples

(make-string 10 :initial-element #\5)

"5555555555"

(length (make-string 10))

10

Affected By

Exceptional Situations

None.

See Also

None.

Notes

None.

\issue{ARGUMENTS-UNDERSPECIFIED:SPECIFY} \issue{ARGUMENTS-UNDERSPECIFIED:SPECIFY} \issue{CHARACTER-PROPOSAL:2-3-6} \issue{CHARACTER-PROPOSAL:2-3-6}