[Haskell-cafe] Functions that return functions

Daniel Fischer daniel.is.fischer at web.de
Sun Apr 12 19:20:37 EDT 2009


Am Montag 13 April 2009 01:09:22 schrieb michael rice:
> Example please.
>
> Michael
>

Curried:

f :: a -> b -> c

amenable to partial application.

Uncurried:

g :: (a,b) -> c

not easy to apply partially.

The Prelude contains

curry :: ((a,b) -> c) -> (a -> b -> c)

uncurry :: (a -> b -> c) -> ((a,b) -> c)

to convert if needed.


More information about the Haskell-Cafe mailing list