Ha!

That is really cool. Thanks!

On 20 September 2015 at 11:19, STAR0SS <[email protected]> wrote:

> From the help:
>
> help?> |>
> search: |>
>
> ..  |>(x, f)
>
> Applies a function to the preceding argument. This allows for easy
> function chaining.
>
> .. doctest::
>
> julia> [1:5;] |> x->x.^2 |> sum |> inv
> 0.01818181818181818
>
> The implementation is quite simple:
>
> |>(x, f) = f(x)
>
> https://github.com/JuliaLang/julia/blob/master/base/operators.jl#L198
>

Reply via email to