You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like this and I'm thinking of using it in my next project but I'm struggling to understand why currying increases arity and whether this is a good idea. Is it taken from another functional language? The only one I am familiar with is Haskell which does not do that.
When I try currying a function with 3 inputs and then increasing the arity, I get strange results:
This doesn't really match the mathematical definition of currying. The functionality you've added to is is a combination of unapply and reduce from Ramda. Using that library and the addition function you used above, it would look more like this:
I like this and I'm thinking of using it in my next project but I'm struggling to understand why currying increases arity and whether this is a good idea. Is it taken from another functional language? The only one I am familiar with is Haskell which does not do that.
When I try currying a function with 3 inputs and then increasing the arity, I get strange results:
The text was updated successfully, but these errors were encountered: