News for hackers. Stuff that matters.
Re:Currying in JavaScript by ImprobableTruth on Sunday September 19, 2021 @08:18AM (#28583735)
>And for the other argument I could create separate functions logDebug, logWarning and logError, those would call the generic function with fixed strings, right?

Sure, but what would you do if e.g. the importance string isn't fixed? Well, you might write a function that takes in the importance string and returns a function that calls the generic function with the dynamic string. That's currying.

There are no comments on this comment yet.