Repository URL to install this package:
|
Version:
6.0.4 ▾
|
/**
* Performs left-to-right function composition. The leftmost function may have
* any arity; the remaining functions must be unary.
* In some libraries this function is named `sequence`.
*
* @icon |
* @func
* @memberOf fp
* @since v5.0.0
* @category Function
* @sig (((a, b, ..., n) -> o), (o -> p), ..., (x -> y), (y -> z)) -> ((a, b, ..., n) -> z)
* @symb pipe(f, g, h)(a, b) = h(g(f(a, b)))
* @extends fp/pipeTwo
*
* @param first function first
* @param rest function next
*
* @see https://github.com/reactjs/redux/blob/master/src/compose.js
* @see https://github.com/ramda/ramda/blob/master/src/compose.js
* @see https://github.com/ramda/ramda/blob/master/src/pipe.js
* @see https://github.com/ramda/ramda/blob/master/test/pipe.js
*
* @types fp
* @tests fp/pipe
*
* @example
*
* var f = R.pipe(Math.pow, R.negate, R.inc);
* f(3, 4); // -(3^4) + 1
*
* @example
*
* var x = v => v + 'x'
* var y = v => v + 'y'
* var z = v => v + 'z'
*
* const xyz = pipe(x, y, z)
* /// starts with w, adds x, then y, then z
* const wxyz = xyz('w')
* //=> 'wxyz'
*
*/
export default function pipe(first: any, ...argumentz: any[]): (...args: any[]) => any;