To - Function Summary
Constructs and returns a new value after conversion.
to type spec
type - The datatype or example value. (must be: any-type)
spec - The attributes of the new value. (must be: any-type)
Every datatype provides a TO method to allow conversions from other datatypes. The to-binary, to-block, and all other to- functions are mezzanine functions that are based on this TO function.
Here are a few examples:
The TO function lets the target datatype be specified as an argument, allowing you to write code such as:
The conversions that are allowed depend on the specific datatype. Some datatypes allow special conversions, such as:
make - Constructs and returns a new value.