LiveScript contains both the forward and reverse piping operator . The purpose of the direct pipeline is obvious:
[1, 2, 3] |> reverse |> tail |> sumtranslated and much clearer than sum(tail(reverse([1, 2, 3])));.
However, the goal of the return pipeline is mysterious to me: sum <| tail <| reverse <| [1, 2, 3]exactly the same as soon as sum tail reverse [1, 2, 3], and as far as I can tell about the differences in priority.
So what is the purpose of the statement <|in LiveScript?
source
share