compose
Call Signature
Section titled “Call Signature”compose<
A,B>(ab): (a) =>B
Defined in: Composition/compose.ts:24
Composes functions from right to left, returning a new function. This is the traditional mathematical function composition: (f . g)(x) = f(g(x))
Unlike flow which reads left-to-right, compose reads right-to-left,
matching how nested function calls would be written.
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”(a) => B
Returns
Section titled “Returns”(
a):B
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”B
Example
Section titled “Example”flow for left-to-right composition
Call Signature
Section titled “Call Signature”compose<
A,B,C>(bc,ab): (a) =>C
Defined in: Composition/compose.ts:25
Composes functions from right to left, returning a new function. This is the traditional mathematical function composition: (f . g)(x) = f(g(x))
Unlike flow which reads left-to-right, compose reads right-to-left,
matching how nested function calls would be written.
Type Parameters
Section titled “Type Parameters”A
B
C
Parameters
Section titled “Parameters”(b) => C
(a) => B
Returns
Section titled “Returns”(
a):C
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”C
Example
Section titled “Example”flow for left-to-right composition
Call Signature
Section titled “Call Signature”compose<
A,B,C,D>(cd,bc,ab): (a) =>D
Defined in: Composition/compose.ts:26
Composes functions from right to left, returning a new function. This is the traditional mathematical function composition: (f . g)(x) = f(g(x))
Unlike flow which reads left-to-right, compose reads right-to-left,
matching how nested function calls would be written.
Type Parameters
Section titled “Type Parameters”A
B
C
D
Parameters
Section titled “Parameters”(c) => D
(b) => C
(a) => B
Returns
Section titled “Returns”(
a):D
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”D
Example
Section titled “Example”flow for left-to-right composition
Call Signature
Section titled “Call Signature”compose<
A,B,C,D,E>(de,cd,bc,ab): (a) =>E
Defined in: Composition/compose.ts:31
Composes functions from right to left, returning a new function. This is the traditional mathematical function composition: (f . g)(x) = f(g(x))
Unlike flow which reads left-to-right, compose reads right-to-left,
matching how nested function calls would be written.
Type Parameters
Section titled “Type Parameters”A
B
C
D
E
Parameters
Section titled “Parameters”(d) => E
(c) => D
(b) => C
(a) => B
Returns
Section titled “Returns”(
a):E
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”E
Example
Section titled “Example”flow for left-to-right composition
Call Signature
Section titled “Call Signature”compose<
A,B,C,D,E,F>(ef,de,cd,bc,ab): (a) =>F
Defined in: Composition/compose.ts:37
Composes functions from right to left, returning a new function. This is the traditional mathematical function composition: (f . g)(x) = f(g(x))
Unlike flow which reads left-to-right, compose reads right-to-left,
matching how nested function calls would be written.
Type Parameters
Section titled “Type Parameters”A
B
C
D
E
F
Parameters
Section titled “Parameters”(e) => F
(d) => E
(c) => D
(b) => C
(a) => B
Returns
Section titled “Returns”(
a):F
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”F
Example
Section titled “Example”flow for left-to-right composition
Call Signature
Section titled “Call Signature”compose<
A,B,C,D,E,F,G>(fg,ef,de,cd,bc,ab): (a) =>G
Defined in: Composition/compose.ts:44
Composes functions from right to left, returning a new function. This is the traditional mathematical function composition: (f . g)(x) = f(g(x))
Unlike flow which reads left-to-right, compose reads right-to-left,
matching how nested function calls would be written.
Type Parameters
Section titled “Type Parameters”A
B
C
D
E
F
G
Parameters
Section titled “Parameters”(f) => G
(e) => F
(d) => E
(c) => D
(b) => C
(a) => B
Returns
Section titled “Returns”(
a):G
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”G
Example
Section titled “Example”flow for left-to-right composition
Call Signature
Section titled “Call Signature”compose<
A,B,C,D,E,F,G,H>(gh,fg,ef,de,cd,bc,ab): (a) =>H
Defined in: Composition/compose.ts:52
Composes functions from right to left, returning a new function. This is the traditional mathematical function composition: (f . g)(x) = f(g(x))
Unlike flow which reads left-to-right, compose reads right-to-left,
matching how nested function calls would be written.
Type Parameters
Section titled “Type Parameters”A
B
C
D
E
F
G
H
Parameters
Section titled “Parameters”(g) => H
(f) => G
(e) => F
(d) => E
(c) => D
(b) => C
(a) => B
Returns
Section titled “Returns”(
a):H
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”H
Example
Section titled “Example”flow for left-to-right composition
Call Signature
Section titled “Call Signature”compose<
A,B,C,D,E,F,G,H,I>(hi,gh,fg,ef,de,cd,bc,ab): (a) =>I
Defined in: Composition/compose.ts:61
Composes functions from right to left, returning a new function. This is the traditional mathematical function composition: (f . g)(x) = f(g(x))
Unlike flow which reads left-to-right, compose reads right-to-left,
matching how nested function calls would be written.
Type Parameters
Section titled “Type Parameters”A
B
C
D
E
F
G
H
I
Parameters
Section titled “Parameters”(h) => I
(g) => H
(f) => G
(e) => F
(d) => E
(c) => D
(b) => C
(a) => B
Returns
Section titled “Returns”(
a):I
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”I
Example
Section titled “Example”flow for left-to-right composition
Call Signature
Section titled “Call Signature”compose<
A,B,C,D,E,F,G,H,I,J>(ij,hi,gh,fg,ef,de,cd,bc,ab): (a) =>J
Defined in: Composition/compose.ts:71
Composes functions from right to left, returning a new function. This is the traditional mathematical function composition: (f . g)(x) = f(g(x))
Unlike flow which reads left-to-right, compose reads right-to-left,
matching how nested function calls would be written.
Type Parameters
Section titled “Type Parameters”A
B
C
D
E
F
G
H
I
J
Parameters
Section titled “Parameters”(i) => J
(h) => I
(g) => H
(f) => G
(e) => F
(d) => E
(c) => D
(b) => C
(a) => B
Returns
Section titled “Returns”(
a):J
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”J
Example
Section titled “Example”flow for left-to-right composition