|
string
|
The string function converts an argument {obj} into a String object.
If the argument is a native data type such as: #void, Error, Boolean, Character,
Integer, Number, Integer, Money, Percent, Text, or Character, the string
function converts the native data type into a String. Complex and String data types
are also converted into a String. If the argument is any other heap object such as
Symbol, Pair, Vector, Structure, or Dictionary, the string function returns
the object's external object id, i.e. # When to use The string function is used to coerce an object into a String or Text.
Any character string that is 15 characters is assigned to a Text data type.
If a character string containing more than 15 characters is assigned to a
String object.
(string obj) (string obj true) The result string
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types obj The object to be coerced Error Void Character String Symbol Vector BitVector ByteVector IntVector
FltVector ObjVector Structure Dictionary DirectoryPair
Matrix NumMatrix Integer Float Number Complex true Optional argument. If present and the obj argument is a heap object, string function
will return the object value instead of the object's external id which is converted
to a string. Boolean
Returns:
Examples
Argument Types
Error
Void
Character
String
Symbol
Vector
BitVector
ByteVector
IntVector
FltVector
ObjVector
Structure
Dictionary
Directory
Pair
Matrix
NumMatrix
Integer
Float
Number
Complex
How do I contact the AIS team?