title: “REFLECTION::TYPE” version: “1g” date: “2023-12-12” author: “laplante@plcb.ca” section: “1g”
reflection::type returns the type of a given expression.
reflection::type(expression)
type(expression)
This function returns the type of a given expression.
The possible return values are:
"nil"
"int"
"float"
"string"
"id"
"bool"
"array"
"map"
"mapname"
"nargs"
"re"
"undefined"
res={{
type(1);
type(1.1);
type("string");
type([1,2,3]);
type({ "x" : 1 });
type(true);
type(false);
type(null);
type(re/allo/);
}}.
res=intfloatstringarraymapboolboolnilre.