Type Functions¶
Type checking and conversion.
Type Checking¶
typeof(value)¶
Get type as string.
print typeof(42); // number
print typeof("hello"); // string
print typeof(true); // bool
print typeof([1, 2, 3]); // array
print typeof(|x|=>{}); // lambda
Type Conversion¶
int(value)¶
Convert to integer.
float(value)¶
Convert to float.
str(value)¶
Convert to string (see String Functions).