type/composition - test for a composition
type/@ - test for the composition operator
type/@@ - test for the repeated composition operator
|
Calling Sequence
|
|
type(expr, composition)
type(expr, `@`)
type(expr, `@@`)
|
|
Description
|
|
•
|
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.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
|
|
Download Help Document
Was this information helpful?