|
4.20.3 string type cast
Syntax:
string ( expression [, expression_2, ... expression_n])
Type:
- string
Purpose:
- Converts each expression to a string, where expression can be of any
type. The concatenated string of all converted expressions is returned.
The elements of intvec, intmat, ideal, module, matrix, and list, are
separated by a comma. No newlines are inserted.
Not defined elements of a list are omitted.
For link, the name of the link is used.
For map, the ideal defining the mapping is converted.
Note:
- When applied to a list, elements of type intvec, intmat, ideal, module,
matrix, and list become indistinguishable.
Example:
See
Type conversion and casting;
print;
string.
|