type/callable
check if an object is a procedure or appliable module
Calling Sequence
Parameters
Description
Examples
type(expr, callable)
expr
-
expression
The type(expr, callable) calling sequence returns true if expr is either a procedure, a module with a ModuleApply procedure, or a name whose assigned value is one of the preceding.
type( proc() end proc, callable );
true
typefoo,callable
false
type2,callable
typeD1,callable
typex⇒y,callable
typesin@cos,callable
typef,g,callable
typeLinearAlgebra,callable
typemodule_exportModuleApplyend module,callable
type( module() export ModuleApply := proc() end proc; end module, callable );
See Also
apply
evalapply
type
type/@
type/@@
type/appliable
type/procedure
unapply
Download Help Document