pipeTo

Constructs a new function that first calls this function, then passes the result to another as input.

f = x -> x + 1 // f(x) = x + 1
g = x -> 2 * x // g(x) = 2x

h = f.pipeTo(g) // h(x) = g(f(x))

Return

the composite function g(f(x))

Parameters

next

the next operation to pipe to