ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   16 Strings   16.2 Dictionary of Strings

16.2.12 make-string Function

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

Arguments and Values:
size - a valid array dimension.

initial-element - a character. The default is implementation-dependent.

element-type - a type specifier. The default is character.

string - a simple string.

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.

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

Affected By:
The implementation.

Allegro CL Implementation Details:

Home Previous Up Next Table of Contents Index
© Franz Inc. All Rights Reserved - File last updated 2022-07-25