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.
typesin@cos,`@`
true
typesin@cos@csc,`@`
typecsc2,`@@`
typecos@sin2,`@@`
typesin@cos,composition
typesin2@cos2,composition
typesin,`@@`
false
typesin0,`@@`
typesincosx,composition
See Also
compose
type
type/appliable
Download Help Document