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。
Now that you understand the mapping block, let's take things one step further.
了解了mapping块后,让我们再深入一步。
A water tariff structure with step-wise increase or decrease of the price per unit water from one block to the next.
一种水价结构,水的单价从一个水量段到下一个水量段逐步增加或者减少。
应用推荐