[Haskell-cafe] Haskell's "currying" versus Business Objects Gem Cutter's "burning"

Salvatore Insalaco kirby81 at gmail.com
Tue Jul 3 05:52:04 EDT 2007


2007/7/3, peterv <bf3 at telenet.be>:
>
>  In Haskell, currying can only be done on the last (rightmost) function
> arguments.
>
You can use "flip".
E.g. if you have foo x y, and you want use "foo ? y" in a map, you can just
write:

map (flip foo y) xs

Salvatore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070703/0bd699c6/attachment.htm


More information about the Haskell-Cafe mailing list