We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb8e6be commit e22f219Copy full SHA for e22f219
_zh-cn/tour/higher-order-functions.md
@@ -14,7 +14,7 @@ next-page: nested-functions
14
previous-page: mixin-class-composition
15
---
16
17
-高阶函数是指使用其他函数作为参数、或者返回一个函数作为结果的函数。在Scala中函数是“一等公民”,所以允许定义高阶函数。这里的术语可能有点让人困惑:使用函数作为参数,或者返回值为函数的“函数”和“方法”,我们均称之为“高阶函数”。
+高阶函数是指使用其他函数作为参数、或者返回一个函数作为结果的函数。在Scala中函数是“一等公民”,所以允许定义高阶函数。这里的术语可能有点让人困惑,我们约定,使用函数值作为参数,或者返回值为函数值的“函数”和“方法”,均称之为“高阶函数”。
18
19
最常见的一个例子是Scala集合类(collections)的高阶函数`map`
20
```
0 commit comments