34 lines
819 B
Plaintext
34 lines
819 B
Plaintext
|
|
||
|
{{alias}}( ...fcn )
|
||
|
Returns a pipeline function.
|
||
|
|
||
|
Starting from the left, the pipeline function evaluates each function and
|
||
|
passes the result as an argument to the next function. The result of the
|
||
|
rightmost function is the result of the whole.
|
||
|
|
||
|
Only the leftmost function is explicitly permitted to accept multiple
|
||
|
arguments. All other functions are evaluated as unary functions.
|
||
|
|
||
|
Parameters
|
||
|
----------
|
||
|
fcn: ...Function
|
||
|
Functions to evaluate in sequential order.
|
||
|
|
||
|
Returns
|
||
|
-------
|
||
|
out: Function
|
||
|
Pipeline function.
|
||
|
|
||
|
Examples
|
||
|
--------
|
||
|
> function a( x ) { return 2 * x; };
|
||
|
> function b( x ) { return x + 3; };
|
||
|
> function c( x ) { return x / 5; };
|
||
|
> var f = {{alias}}( a, b, c );
|
||
|
> var z = f( 6 )
|
||
|
3
|
||
|
|
||
|
See Also
|
||
|
--------
|
||
|
|