hardJavaScript
Implement Curry Function
Create a curry function that transforms a function with multiple arguments into a sequence of functions that each accept fewer arguments.
Example:
Input: curry(sum)(1)(2)(3)
Output: 6
Ensure function signatures match starter code to run test cases.
index.js
Loading...
Test Case #1
Input: curry((a,b,c)=>a+b+c)(1)(2)(3)
Expected: 6
Test Case #2 (Hidden Case)
Input: curry((a,b)=>a*b)(5)(4)
Expected: 20