Const
Passes a value through a series of transformations. Unlike pipe0, this immediately executes the pipe with the initial value.
pipe0
Initial input type
Intermediate and final types in the transformation chain
The initial value
A sequence of transformation functions
The result of applying all transformations to the initial value
G.pipe( 5, (n: number) => n + 2, (n: number) => n * 3) // (5 + 2) * 3 = 21 Copy
G.pipe( 5, (n: number) => n + 2, (n: number) => n * 3) // (5 + 2) * 3 = 21
Passes a value through a series of transformations. Unlike
pipe0, this immediately executes the pipe with the initial value.