[Haskell-cafe] Syntax proposal for "reverse apply"/"pipeline apply" (flip ($))

Alexey Muranov alexey.muranov at gmail.com
Thu Apr 17 13:11:03 UTC 2014


On 17 avr. 2014, at 15:05, Alexander Berntsen <alexander at plaimi.net> wrote:

>> * a left-associative and a right-associative operator symbols
>> cannot have the same precedence, so '|>' and '<|' would need to
>> have different precedence.
> Why? In the languages I have used '|>' and '<|', they have the same
> precedence.

I do not know F#, and maybe i am missing something, but assuming that

    x |> f |> g == (x |> f) |> g

and 

    g <| f <| x == g <| (f <| x)

what are

    x |> f <| y

and

    g <| x |> f

?


More information about the Haskell-Cafe mailing list