Your implementation is broken for any function that has more than two arguments. const sum3 = curry(( a, b, c ) => a + b + c ) const sum3_10 = sum3( 10 ) // ... const sum3_10_20 = sum3_10( 20 ) // ... sum3_10_20( 30 )…
Your implementation is broken for any function that has more than two arguments. const sum3 = curry(( a, b, c ) => a + b + c ) const sum3_10 = sum3( 10 ) // ... const sum3_10_20 = sum3_10( 20 ) // ... sum3_10_20( 30 )…