fromsymbol
fromsymbol(
@x ## symbol (required)
) -> anything
Converts symbols into numeric data and other data types.
Arguments
@x[symbol]: Symbol to cast (required)
Output
Converted value [anything]
Usage
$digits = '1 2.0 3/2';
$nums = fromsymbol($digits);
print(for $num in $nums collect is($num)) ## integer real rational