You are currying favor with me.
你在讨好我。
Of course, Scala supports currying, as illustrated by the snippet from the Scala documentation shown in Listing 8
当然,Scala支持局部套用,如清单8展示的 Scala文档的部分片段所示
I felt like a kid in a candy store reading about junctions, currying, and all the other exciting features that Perl 6 promises.
在阅读到junctions、currying以及Perl 6将要具备的所有其他特性时,我感觉就像是小孩子走进了糖果店。
While that is true in some ways, you can and should go very far with the basic building blocks of FP; lambdas, HOFs, currying, partial application, and so on.
尽管从某些方面来说这是对的,但是用FP基础构建块,你能走得更远;如lambdas、HOFs、currying、partialapplication等等。
In Listing 7, we've taken things one step further by currying the map closure, resulting in a block that will multiply all the elements of a given list by 12.
在清单7中,我们把事情又向前进行了一步,对map闭包进行了curry处理,形成一个块,会将指定列表中的所有元素都乘以12。
The difference is subtle, and the end result is the same, but if you use the terms currying and partial application interchangeably within earshot of a functional programmer, count on being corrected.
这两者之间的差别非常微小,最终结果也是相同的,但是如果您在一名函数编程人员的面前混用局部套用和部分应用,那么他一定会纠正您的说法。
The difference is subtle, and the end result is the same, but if you use the terms currying and partial application interchangeably within earshot of a functional programmer, count on being corrected.
这两者之间的差别非常微小,最终结果也是相同的,但是如果您在一名函数编程人员的面前混用局部套用和部分应用,那么他一定会纠正您的说法。
应用推荐