TypeOf
TypeOf[expr]
gives the type of expr without evaluating it.
Examples
open allclose allBasic Examples (3)
Find the type of an expression:
Find the type of an expression while specifying only the type of a subexpression:
Compile a program using TypeOf:
Scope (2)
Find the type of a program using arrays:
TypeOf does not evaluate its argument in compiled code, just as in evaluated code:
Properties & Relations (2)
TypeOf infers the type of its input without evaluating it:
TypeOf effectively gives the return type of the CompiledCodeFunction generated by FunctionCompile but is much faster:
Possible Issues (1)
TypeOf can only infer the types of compilable programs:
Text
Wolfram Research (2022), TypeOf, Wolfram Language function, https://reference.wolfram.com/language/ref/TypeOf.html.
CMS
Wolfram Language. 2022. "TypeOf." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TypeOf.html.
APA
Wolfram Language. (2022). TypeOf. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TypeOf.html