Skip to content

atomicfruitcake/how2curry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

how2curry

What is this?

This is a an introduction to the technique of currying in programming. The examples are written in both Python and JavaScript.

What is currying?

Currying is the technique of breaking down functions that take multiple arguments into functions that take a single argument (monads).

Take the following definition of a function that takes two arguments:

f(A, B)  C

If we were to curry the above function we would describe it in the following way:

f(A)  g(B)  C

Where the functions f and g are now monads.