|
|
|
|
|
by runeks
418 days ago
|
|
> The author keeps calling it "pipelining", but I think the right term is "method chaining". Allow me, too, to disagree. I think the right term is "function composition". Instead of writing h(g(f(x)))
as a way to say "first apply f to x, after which g is applied to the result of this, after which h is applied to the result of this", we can use function composition to compose f, g and h, and then "stuff" the value x into this "pipeline of composed functions".We can use whatever syntax we want for that, but I like Elm syntax which would look like: x |> f >> g >> h
|
|