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
type⁡foo,callable
false
type⁡2,callable
type⁡D1,callable
type⁡x⇒y,callable
type⁡sin@cos,callable
type⁡f,g,callable
type⁡LinearAlgebra,callable
type⁡module_export⁡ModuleApplyend 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