The action closure (somewhat similar to the map closure) applies an action closure to every element of a List.
action闭包(与map闭包有点相似)把action闭包应用于List的每个元素。
The map closure has a parameter f that represents a closure and a parameter list that represents, not surprisingly, a List.
map闭包有一个参数f代表闭包,还有一个参数list 代表(不要惊讶)List。
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。
To create child nodes, I create a closure and declare a new object dubbed name, which takes parameters in the form of a map.
要创建子节点,我创建一个闭包并声明一个名叫name的新对象它接收map形式的参数。
Ruby has these same list-manipulation methods that use closure blocks, and I was struck by how often collect(), map(), and inject() appear.
Ruby拥有这些使用闭包块的相同列表操作方法,我不清楚collect()、map()和inject()多久出现一次。
Here you can see a closure named map, which is not to be confused with the map interface.
在这里可以看到名为map的闭包,不要把它与map接口混淆。
ClojureScript namespace definitions map to Google Closure provide and require calls.
ClojureScript命名空间定义与GoogleClosure的provide与require调用对应。
ClojureScript namespace definitions map to Google Closure provide and require calls.
ClojureScript命名空间定义与GoogleClosure的provide与require调用对应。
应用推荐