Skip to main content
Module

x/ramda/source/pipe.js>default

:ram: Practical functional Javascript
Latest
function default
import { default } from "https://deno.land/x/ramda@v0.27.2/source/pipe.js";

Performs left-to-right function composition. The first argument may have any arity; the remaining arguments must be unary.

In some libraries this function is named sequence.

Note: The result of pipe is not automatically curried.

Examples

const f = R.pipe(Math.pow, R.negate, R.inc);

f(3, 4); // -(3^4) + 1