Proposal: Add (&) to Data.Function

John Wiegley johnw at
Tue Nov 20 22:02:30 CET 2012

>>>>> Gábor Lehel <illissius at> writes:

> What if (&) is flip ($) instead?

>     theList & filter even & map (*2) & sum

Take the list as given and filter the evens and multiply each element by two
and take the sum.

     theList |> filter even |> map (*2) |> sum

Is your argument against the operator in general?  The |> usage has the same

Also, |> feels like something related to Alternative, a point Edward

John Wiegley
FP Complete                         Haskell tools, training and consulting               johnw on #haskell/

More information about the Libraries mailing list