
20 Nov
2012
20 Nov
'12
4:02 p.m.
Gábor Lehel
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