re: What is Currying? VIEW POST

VIEW FULL DISCUSSION

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

code of conduct - report abuse