On Sun, Jul 25, 2010 at 11:53 PM, Edward Z. Yang <[email protected]> wrote:

> An interesting alternate spin on flip is infix notation combined with partial
> application, such as:
>
>    (`foobar` 3)
>
> which is equivalent to
>
>    \x -> foobar x 3
>
> I frequently use this, although the jury's out on whether or not it's more 
> readable.

I had HLint suggest me this :

before :

listeEtagTot = concatMap (flip listeEtagArm cfgTypesTringle) listeArmOrd

after :

listeEtagTot = concatMap (`listeEtagArm` cfgTypesTringle) listeArmOrd


David.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to