Curry

Transform a function that takes multiple arguments into a sequence of functions that each take a single argument.

Examples
Input: [null,1,2,3]
Output: 6
Hints

Curry

Implement a function that transforms a multi-argument function into a curried version.