stringc

stringc — constructs a string in Lisp-readable form,

Syntax

stringc (s_exp...)

		

Arguments

s_exp

Any number of expressions.

Returns

A string which is the concatenation of all of the arguments.

Description

This function is identical to the string function, except that the result is produced in a form which is guaranteed to be in Lisp-readable form. This means that special characters within strings and symbols will be escaped appropriately for the reader, and that new-line, form-feed, and tab characters are translated into their \n, \f, and \t equivalents.

Example

Gamma> string(#my, #symbol);
"mysymbol"
Gamma> stringc(#my, #symbol);
"mysymbol"
Gamma> stringc("A list: ",list(#a,#b,#c), " and a sum: ",2 + 3);
"\"A list: \"(a b c)\" and a sum: \"5"
Gamma>  
	

See Also

string