XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next

string


Type:   -   function (subr)
Source:   -   xlstr.c

Syntax

(string expr)
expr - a symbol, character or string expression
returns - a string

Description

The 'string' function makes the 'expr' to be a string. If the 'expr' is a string, it is returned, as is. If the 'expr' is a character, a one-character string is returned. If the 'expr' is a symbol, the symbol is turned into a string.

Examples

(string 'foo)        ; returns "FOO"
(string 'x)          ; returns "X"
(string "abcdef")    ; returns "abcdef"
(string #\a)         ; returns "a"
(string #\A)         ; returns "A"
(string #\Newline)   ; returns "\n"

See the string function in the XLISP 2.0 manual.

  Back to Top


XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next