That's just cool. I now reverse my original statement - 'flip' does have it's place in the pantheon of standard Haskell functions.
-deech
On 26.07.2010 08:33, David Virebayre wrote:You can use flip as a "wildcard" aswell:
listeEtagTot = concatMap (`listeEtagArm` cfgTypesTringle) listeArmOrd
> listeEtagTot = concatMap (listeEtagArm `flip` cfgTypesTringle) listeArmOrd
Makes it even more readable in my opinion, since this really "shows" you where the value belongs to.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe