Hacker News new | ask | show | jobs
by Mawr 28 days ago
> (a + b + c + d) * e

   a
   |> add(b)
   |> add(c)
   |> add(d)
   |> mult(e)
> mult(add(a, add(b, add(c, d))), e)

    c
    |> add(d)
    |> add(b, _)
    |> add(a, _)
    |> mult(e)
1 comments

What a lovely pipe operator you have there to chain the functions and contribute to code readability :)