DEV Community

Discussion on: What is Currying?

Collapse
 
artus_lla profile image
Arturo Llaja Alarcón

Great article.

On the function:
curry f n = \m -> f n m

g = curry (+) 5

g 10 -- returns 15

h = curry (*) 5

g 10 -- returns 50

The last line should be:

h 10 -- returns 50