There's the pipe operator in a lot of languages (|>) to try and solve this problem, but it has always felt clunky to me. Compare:
f(g(h(x)))
x.h.g.f
x |> f |> g |> h
I think most people prefer the second one to all the rest.
f(g(h(x)))
x.h.g.f
x |> f |> g |> h
I think most people prefer the second one to all the rest.
x |> h |> g |> f
Which is identical to the second, except for a more eloquent choice of the pipeline symbol?