An introduction to the Julia language, part 2
An introduction to the Julia language, part 2
Posted Sep 5, 2018 7:18 UTC (Wed) by rsidd (subscriber, #2582)Parent article: An introduction to the Julia language, part 2
Unlike much of Julia, the "chaining" of functions (which I hadn't yet encountered)
f(x) |> g |> h == h(g(f(x)))seems non-intuitive and contrary to mathematical notation to me. Usually "function composition" is written left to right, ie
h ◦ g ◦ f(x) ≡ h(g(f(x)))
and Haskell, for example, follows that with dot-composition -- you would write
h . g . f (x)in Haskell.
