REFLECTION::TYPE 1g 2023-12-12 laplante@plcb.ca GOWEB/REFLECTION


title: “REFLECTION::TYPE” version: “1g” date: “2023-12-12” author: “laplante@plcb.ca” section: “1g”

module: “GOWEB/REFLECTION”

Name

reflection::type returns the type of a given expression.

Synopsis

reflection::type(expression)
type(expression)

Description

This function returns the type of a given expression.
The possible return values are:

Examples

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.

Author

See also

Version