type/composition
test for a composition
type/@
test for the composition operator
type/@@
test for the repeated composition operator
Calling Sequence
Parameters
Description
Examples
type(expr, composition)
type(expr, `@`)
type(expr, `@@`)
expr
-
expression
These commands test expr for various forms of function composition.
The type(expr, `@`) calling sequence returns true if expr is a composition of functions. It is equivalent to type(expr, specfunc(anything, `@`)).
The type(expr, `@@`) calling sequence returns true if expr is a repeated composition. It is equivalent to type(expr, specfunc(anything, `@@`)).
The type(expr, composition) calling sequence returns true if expr is either of type @ or @@.
For more information about function composition, see compose.
type⁡sin@cos,`@`
true
type⁡sin@cos@csc,`@`
type⁡csc2,`@@`
type⁡cos@sin2,`@@`
type⁡sin@cos,composition
type⁡sin2@cos2,composition
type⁡sin,`@@`
false
type⁡sin0,`@@`
type⁡sin⁡cos⁡x,composition
See Also
compose
type
type/appliable
Download Help Document