Module

x/rambda/rambda.js>pipe

Faster and smaller alternative to Ramda
Go to Latest
function pipe
import { pipe } from "https://dotland.deno.dev/x/rambda@v9.2.0/rambda.js";

It performs left-to-right function composition.

Type Parameters

TArgs extends any[]
R1
R2
R3
R4
R5
R6
R7
TResult

Parameters

...funcs:
[
(...args: TArgs) => R1,
(a: R1) => R2,
(a: R2) => R3,
(a: R3) => R4,
(a: R4) => R5,
(a: R5) => R6,
(a: R6) => R7,
Array<(a: any) => any>,
(a: any) => TResult,
]

Returns

(...args: TArgs) => TResult

Type Parameters

TArgs extends any[]
R1
R2
R3
R4
R5
R6
R7

Parameters

f1: (...args: TArgs) => R1
f2: (a: R1) => R2
f3: (a: R2) => R3
f4: (a: R3) => R4
f5: (a: R4) => R5
f6: (a: R5) => R6
f7: (a: R6) => R7

Returns

(...args: TArgs) => R7

Type Parameters

TArgs extends any[]
R1
R2
R3
R4
R5
R6

Parameters

f1: (...args: TArgs) => R1
f2: (a: R1) => R2
f3: (a: R2) => R3
f4: (a: R3) => R4
f5: (a: R4) => R5
f6: (a: R5) => R6

Returns

(...args: TArgs) => R6

Type Parameters

TArgs extends any[]
R1
R2
R3
R4
R5

Parameters

f1: (...args: TArgs) => R1
f2: (a: R1) => R2
f3: (a: R2) => R3
f4: (a: R3) => R4
f5: (a: R4) => R5

Returns

(...args: TArgs) => R5

Type Parameters

TArgs extends any[]
R1
R2
R3
R4

Parameters

f1: (...args: TArgs) => R1
f2: (a: R1) => R2
f3: (a: R2) => R3
f4: (a: R3) => R4

Returns

(...args: TArgs) => R4

Type Parameters

TArgs extends any[]
R1
R2
R3

Parameters

f1: (...args: TArgs) => R1
f2: (a: R1) => R2
f3: (a: R2) => R3

Returns

(...args: TArgs) => R3

Type Parameters

TArgs extends any[]
R1
R2

Parameters

f1: (...args: TArgs) => R1
f2: (a: R1) => R2

Returns

(...args: TArgs) => R2

Type Parameters

TArgs extends any[]
R1

Parameters

f1: (...args: TArgs) => R1

Returns

(...args: TArgs) => R1