"FunctionType" ()
"FunctionType" ()
{ty1, ty2, …}tyres
represents a function type with specified argument and result types.
Details
- Function types can be used in Typed and related constructs to specify a type.
Expression Conversions
- CompiledCodeFunction expressions can be converted into compiled code elements with function types.
- A code element representing a function type cannot currently be converted into an expression.
From Expressions
To Expressions
Examples
Basic Examples (1)
Function types can be used as an input to a CompiledCodeFunction. Create a function that takes a "MachineInteger" as argument:
See Also
Function Typed TypeSpecifier FunctionCompile
Compiled Types: Boolean Integer64 Real64 ComplexReal64
Related Guides
Related Links
History
Introduced in 2019 (12.0)