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.7 string Function

Syntax:
string x    string

Arguments and Values:
x - a string, a symbol, or a character.

string - a string.

Description:
Returns a string described by x; specifically:

Examples:
 (string "already a string")  "already a string"
 (string 'elm)  "ELM"
 (string #\c)  "c"

Exceptional Situations:
In the case where a conversion is defined neither by this specification nor by the implementation, an error of type type-error is signaled.

See Also:
coerce, string (type).

Notes:
coerce can be used to convert a sequence of characters to a string.

prin1-to-string, princ-to-string, write-to-string, or format (with a first argument of nil) can be used to get a string representation of a number or any other object.

Allegro CL Implementation Details:
None.

Home Previous Up Next Table of Contents Index
© Franz Inc. 1998-2015 - File last updated 03-23-2015