Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
chain-able-deps / dist / typings / fp / pipe.d.ts
Size: Mime:
/**
 * 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;