News for hackers. Stuff that matters.
Re:The Elixir of concurrency by andy_ppp on Tuesday May 24, 2016 @02:34AM (#11759374)

    A |> B |> C second_param
Is the same as:

    C(B(A()), second_param)
It's much more powerful than that because you can create chains of functions that pipe their output i.e.

   Some_data
   |> fetch_reports
   |> email_users
   |> setup_notifications
   |> IO.inspect
   |> affirm_elixir_pipes
It's 100% not the same as dot or arrow! IO.inspect allows you to print details of any data being passed but also returns the first argument passed.

Hope this is a clear explanation of what is happening.

There are no comments on this comment yet.