News for hackers. Stuff that matters.
Re:Currying in JavaScript by flyingchipmann on Sunday September 19, 2021 @12:59PM (#28585877)
If you come from typical oop background like java. Imagine there is a function has 5 parameters, and you need to to provide the first 3 first. Then later on you are using this partially applied function somewhere else. You can even reuse it later with different 2 params. Compare to class, it's just like how you initialize an object with certain values, then do something else with this object.

There are no comments on this comment yet.