type/appliable
check if an object can be applied
Calling Sequence
Parameters
Description
Examples
type(expr, appliable)
expr
-
expression
The type(expr, appliable) calling sequence returns true if expr, when applied to some expression or expression sequence, may evaluate to an expression that is not of type specfunc⁡expr.
More specifically, expr is appliable if one of the following is true:
- It is one of the following types.
procedure
equation
logical
+
*
^
dot
range
complex({numeric,float})
list
set
array
- It is of type @ and all its operands are appliable.
- It is of type @@ and its first operand is appliable.
- It is of type indexed and its zeroth operand is appliable.
- It is an appliable module.
- It is of type function, and an evalapply rule exists for its zeroth operand.
type( proc() end proc, appliable );
true
type⁡foo,appliable
false
type⁡2,appliable
type⁡D1,appliable
type⁡x⇒y,appliable
type⁡sin@cos,appliable
type⁡f,g,appliable
type⁡LinearAlgebra,appliable
type⁡module_export⁡ModuleApplyend module,appliable
See Also
apply
evalapply
type
type/@
type/@@
type/callable
type/procedure
unapply
Download Help Document