Please help understand |> operator

Operators are in the REPL help of Julia (they can be hard to find in the on-line documentation).
Access REPL help simply by entering a ‘?’

help?> |>
search: |>

  |>(x, f)

  Applies a function to the preceding argument. This allows for easy function
  chaining.

  Examples
  ≡≡≡≡≡≡≡≡≡≡

  julia> [1:5;] |> x->x.^2 |> sum |> inv
  0.01818181818181818

julia> 
4 Likes