This proposal introduces a new operator
|> similar to F#, OCaml, Elixir, Elm, Julia, Hack, and LiveScript, as well as UNIX pipes. It's a backwards-compatible way of streamlining chained function calls in a readable, functional manner, and provides a practical alternative to extending built-in prototypes.
The pipeline operator is essentially a useful syntactic sugar on a function call with a single argument. In other words,
sqrt(64) is equivalent to
64 |> sqrt.
This allows for greater readability when chaining several functions together. For example, given the following functions:
...the following invocations are equivalent:
... read the whole story at github.com.