"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: