These are chat archives for evhub/coconut
3 |> (x) -> x**2
->has a lower precedence than
|>, so you need to write
3 |> (x -> x**2)instead. You can see the lower precedence if you write
->, as in
x -> x |> func. Technically, though, it's a good point that the reverse order is unambiguous, so we could allow
3 |> x -> x**2. Seems worth considering, so I just put it up on #275.
3 |> (x) -> x**2 |> (x) -> x + 2
wouldn't be unambiguous then...
.(function composition) and arrows
>>>(which I'd say is closer to the pipe-operator in coconut) also have lower precedence than