js 柯里化
This article is about the mathematical technique. For the cooking process of this name, see Curry. For the leather finishing process, see Currier.
In mathematics and computer science, currying is the technique of translating the evaluation of a function that takes multiple arguments (or a tuple of arguments) into evaluating a sequence of functions, each with a single argument. Currying is related to, but not the same as, partial application.