Proposal: Add (&) to Data.Function
John Wiegley
johnw at fpcomplete.com
Tue Nov 20 22:02:30 CET 2012
>>>>> Gábor Lehel <illissius at gmail.com> 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
problem.
Also, |> feels like something related to Alternative, a point Edward
mentioned.
--
John Wiegley
FP Complete Haskell tools, training and consulting
http://fpcomplete.com johnw on #haskell/irc.freenode.net
More information about the Libraries
mailing list