Skip to main content
Module

x/ramda/mod.ts>pipe

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

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