Category "currying"

Variadic curried sum function

I need a js sum function to work like this: sum(1)(2) = 3 sum(1)(2)(3) = 6 sum(1)(2)(3)(4) = 10 etc. I heard it can't be done. But heard that if adding + in

Why does partial application work when currying but not with .bind()?

I'm practicing partial application of a function, that is, fixing function arguments. I've learned two ways to achieve it: By currying the original function fir

Why isn't (b) of (a -> (b -> c)) the first parameter in the function definition but the second in type signature?

If first parameter is taken by the function first as function application is left-associative, for example: drop 2 [1,2,3,4] result: [3,4] is equivalent to (dr