Ah. That explains my confusion. But isn't that ambiguous terminology? There must be some reason for it to be that way?
The term 'currying' means both of these things:
- Converting an uncurried function to a 'curriable' one
- Partially applying a 'curriable' function
2009/1/13 Peter Verswyvelen <bugfact@gmail.com>:
> _______________________________________________> On page 102: "partial function application is named currying"
>
>
>
> I thought "currying" or "to curry" means converting
>
>
>
> f :: (a,b) ->c
>
>
>
> into
>
>
>
> g :: a -> b -> c
>
>
>
> by applying "curry" (mmm, are Asian people good at Haskell? :-)
>
>
> g = curry f
>
>
>
>
>
>
>
>
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>