在计算机科学中,柯里化(Currying)是把接受多个参数的函数变换成接受一个单一参数(最初函数的第一个参数)的函数,并且返回接受余下的参数且返回结果的新函数的技术。这个技术由 Christopher Strachey 以逻辑学家 Haskell Curry 命名的,尽管它是 Moses Schnfinkel 和 Gottlob Frege 发明的。
柯里化的功能是很强大,但是对于很多开发者来说它是陌生的。不要滥用它,但适当地使用还是非常有用的。
Currying is a powerful but foreign paradigm for many developers. Don't abuse it as its appropriate use cases are fairly unusual.
保罗·柯文讲到西方认为它自身文化好比是所有文化里最具有国际化的文化。
And Paul Cohen argues that the West thinks of itself as probably the most cosmopolitan of all cultures.
应用推荐