Currying
Function currying is a functional design process. A function that takes multiple arguments are refactored into a function that takes a single argument. For example:
|
|
becomes:
|
|
Function currying is a functional design process. A function that takes multiple arguments are refactored into a function that takes a single argument. For example:
|
|
becomes:
|
|