[Haskell-beginners] Partial application and lazy evalutaion

Harald Hanche-Olsen hanche at math.ntnu.no
Sat Aug 15 15:16:04 UTC 2015


Shishir Srivastava wrote:
> Is partial application feature of functions in haskell a direct outcome
> of lazy evaluation ?

I wouldn't say so. If f is a function of two variables, then you can 
think of (f x) as being just an easier way to write \y -> f x y.

And surely, you can do that in any language with lambdas, whether lazy 
or not. You can even do it in javascript: function (y) { return f(x,y) }.

– Harald


More information about the Beginners mailing list