高阶函数,又称算子(运算符)或泛函,包含多于一个箭头的函数。
在第 6 章,我们将仍专注值,但是,要看一下计算值的更方便的方法,使用高阶函数(higher-order functions):函数取其他的函数作为参数值。
基于2584个网页-相关网页
高阶函数(High-level function) 高阶函数是指那些可以接受其它函数为参数,或者把函数作为返回值的函数。上面的makeDerivative函数就是一个例子。
基于44个网页-相关网页
他针对高阶函数对象 higher-order function objects
高阶函数与第一型 Higher-order function and First-class object
较高阶函数 higher order function
高阶导来函数 derived function of higher order
乘积型高阶模糊度函数 Product High-order Ambiguity Function
积型高阶模糊度函数 Product High-order Ambiguity Function
高阶泛函数微分方程 Higher order functional differential equations
通过高阶函数,这很容易做到。
高阶函数提供比面向对象概念更高层次的抽象。
Higher-order functions offer a higher level of abstraction than object-oriented concepts.
后续内容还会对闭包与高阶函数做一些有趣的对比。
I'll also circle back to some interesting comparisons between closures and higher-order functions in a later installment.
应用推荐