# 高阶函数

**高阶函数**是接受一个或多个函数作为参数、返回一个函数作为结果，或两者兼有的函数。<sup>[1](https://kotlinlang.org/docs/lambdas.html)</sup><sup> • </sup><sup>[2](https://eloquentjavascript.net/3rd_edition/05_higher_order.html)</sup> 这一概念的基础在于函数可以像普通值一样使用。<sup>[3](https://cs.wellesley.edu/~cs251/s07/functions.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 接受函数作为参数、返回一个函数，或两者兼有；在支持该特性的语言中，函数是一等值<sup>[1](https://kotlinlang.org/docs/lambdas.html)</sup><sup> • </sup><sup>[3](https://cs.wellesley.edu/~cs251/s07/functions.pdf)</sup> |
| 类型阶测试 | 基本类型的阶为0，且ord(t1->t2) = max{ord(t1)+1, ord(t2)}；“高阶”通常指阶至少为2的类型<sup>[4](https://www.cs.cmu.edu/~15150/resources/lectures/10/HigherOrderFunctions.pdf)</sup> |
| 典型示例 | map、filter和fold，可为包括列表和树在内的多种数据结构定义<sup>[5](https://cs3110.github.io/textbook/_sources/chapters/hop/higher_order.md)</sup> |
| 柯里化 | 返回另一个函数的函数，其行为类似于多参数函数；部分应用固定前导参数<sup>[6](https://csci3155.cs.colorado.edu/pppl-course/book/higher-order-functions.html)</sup> |
| 闭包 | 被返回的函数可以访问其词法环境中它所用到的变量<sup>[7](https://clojure.org/guides/higher_order_functions)</sup> |
| 实测开销 | 闭包分配通常比压入一个额外参数更昂贵；针对高阶内联的编译器分析开销可低于编译时间的3%<sup>[8](https://haskell.foundation/hs-opt-handbook.github.io/src/Optimizations/GHC_opt/lambda_lifting.html)</sup><sup> • </sup><sup>[9](https://dl.acm.org/doi/10.1145/2692915.2628153)</sup> |
| 优化上限 | 据报道，lambda集特化在MLton下运行时加速最高达6.85倍，OCaml为3.45倍，Morphic为78.93倍<sup>[10](https://dl.acm.org/doi/10.1145/3591260)</sup> |

## 定义与形式基础

大多数语言文档以操作性的方式陈述定义：例如，Kotlin将接受函数作为参数或返回函数的函数称为高阶函数，其中函数被视为一等值。<sup>[1](https://kotlinlang.org/docs/lambdas.html)</sup>《Eloquent JavaScript》给出了同样的两部分测试。<sup>[2](https://eloquentjavascript.net/3rd_edition/05_higher_order.html)</sup>

类型论通过类型的阶使这一概念精确化。int等基本类型的阶为0，函数类型的阶由ord(t1->t2) = max{ord(t1)+1, ord(t2)}递归定义。参数类型本身是函数类型的函数被归类为高阶函数，即其类型的阶至少为2。<sup>[4](https://www.cs.cmu.edu/~15150/resources/lectures/10/HigherOrderFunctions.pdf)</sup> 相比之下，一阶函数作用于单个数据元素，如字符串、整数、记录和变体。<sup>[5](https://cs3110.github.io/textbook/_sources/chapters/hop/higher_order.md)</sup>

**定义上存在分歧。** 卡内基梅隆大学的讲义记录道，一些作者也把返回类型为任意函数类型（即阶至少为1）的函数视为高阶函数，而更严格的解读要求参数为函数类型。<sup>[4](https://www.cs.cmu.edu/~15150/resources/lectures/10/HigherOrderFunctions.pdf)</sup> Kotlin等语言参考只要求接受或返回函数，不区分这两种情况。<sup>[1](https://kotlinlang.org/docs/lambdas.html)</sup> 两种解读在核心案例上一致：map的参数是函数，在任一解读下都是高阶函数。

这一概念直接源自lambda演算——阿隆佐·丘奇（Alonzo Church）的无类型函数理论。lambda演算定义高阶类型函数的能力，连同丘奇-罗塞尔合流性等性质，使其成为函数式编程的自然基础。<sup>[11](https://kar.kent.ac.uk/88959/1/history.pdf_nocoversheet)</sup> 无类型lambda演算构成了与Lisp相关的通用编程语言原型。<sup>[12](https://www.cambridge.org/core/books/lambda-calculus-with-types/65DC18AC262498B0F93A688CBE748048)</sup>《Haskell 2010报告》将该语言的内核描述为本质上是lambda演算的略微加糖变体，具有直白的指称语义，并将高阶函数列为其核心特性之一。<sup>[13](https://www.haskell.org/onlinereport/haskell2010/haskellch1.html)</sup>

## 一等函数、闭包与柯里化

高阶函数要求函数可用作参数或结果；完整的一等地位并非必需。一个值若可绑定到变量、作为参数传给函数、作为函数结果产生、保存在数据结构中，并可在任意上下文中生成，即具备一等地位。<sup>[3](https://cs.wellesley.edu/~cs251/s07/functions.pdf)</sup>《Composing Programs》将同一思想表述为：限制最少的元素具有一等地位，其权利包括绑定到名字、作为参数传递、作为结果返回以及包含在数据结构中。<sup>[14](https://composingprograms.com/3ed/higher-order-functions/)</sup>

**闭包使返回函数具有意义。** 在具有闭包的语言中，由另一个函数返回的函数可以是闭包：它可以访问其词法环境中它所用到的变量。<sup>[7](https://clojure.org/guides/higher_order_functions)</sup> 在SML中，函数值可作为参数传给函数调用，也可作为结果返回。<sup>[4](https://www.cs.cmu.edu/~15150/resources/lectures/10/HigherOrderFunctions.pdf)</sup>

**柯里化与部分应用是不同的操作。** 借助一等函数和词法作用域，多参数函数可以表示为嵌套的单参数函数；这种变换称为柯里化。<sup>[6](https://csci3155.cs.colorado.edu/pppl-course/book/higher-order-functions.html)</sup> 使用柯里化的一个原因是为了支持部分应用。<sup>[6](https://csci3155.cs.colorado.edu/pppl-course/book/higher-order-functions.html)</sup> 在Haskell中，类型max :: (Ord a) => a -> a -> a可读作max接受一个a并返回一个接受a并返回a的函数，而用过少的参数调用函数会得到一个部分应用函数，它接受的参数数量等于遗漏的参数数量。<sup>[15](https://learnyouahaskell.github.io/higher-order-functions.html)</sup> 从机制上说，Haskell的函数应用是左结合的，因此(f x) y中的括号可以省略。<sup>[16](https://www.haskell.org/onlinereport/haskell2010/haskellch3.html)</sup> 因此，柯里化是将多参数函数表示为嵌套单参数函数；部分应用是提供少于柯里化形式所期望的参数数量，从而产生一个剩余函数的行为。

函数类型在各语言中用箭头书写。Kotlin的(A, B) -> C表示接受两个类型为A和B的参数并返回类型为C的值的函数。<sup>[1](https://kotlinlang.org/docs/lambdas.html)</sup> SML中map的类型是map : ('a -> 'b) -> ('a list -> 'b list)，其中参数位置本身就是一个函数类型。<sup>[4](https://www.cs.cmu.edu/~15150/resources/lectures/10/HigherOrderFunctions.pdf)</sup> Rust走了一条不同的路：其闭包RFC 0114通过Fn、FnShare和FnOnce trait将函数调用变为可重载运算符，从而统一了闭包和trait，这些trait在self参数上有所不同，减小了核心类型系统的规模和复杂度。<sup>[17](https://rust-lang.github.io/rfcs/0114-closures.html)</sup> Rust闭包表达式由可选的async关键字、可选的move关键字、由竖线括起的参数、可选的返回类型和函数体组成，它实现哪些Fn trait取决于变量如何被捕获以及是否出现async。<sup>[18](https://doc.rust-lang.org/stable/reference/expressions/closure-expr.html)</sup>

## 典型高阶函数

Map、filter和fold是三个最著名的高阶函数，它们可为包括列表和树在内的多种数据结构定义。<sup>[5](https://cs3110.github.io/textbook/_sources/chapters/hop/higher_order.md)</sup>

- **map** 将函数应用于列表的每个元素，返回由函数结果组成的列表。<sup>[19](https://www.cl.cam.ac.uk/~lp15/MLbook/PDF/chapter5.pdf)</sup> Haskell Prelude中的类型是(a -> b) -> [a] -> [b]，递归定义为map' f [] = []; map' f (x:xs) = f x : map' f xs。<sup>[20](https://faculty.cs.olemiss.edu/~hcc/csci450/ELIFP/Ch15/15_Higher_Order.pdf)</sup>
- **filter** 将谓词——一个返回布尔值的函数——应用于列表，按原顺序返回所有满足谓词的元素。<sup>[19](https://www.cl.cam.ac.uk/~lp15/MLbook/PDF/chapter5.pdf)</sup>
- **fold**（reduce）用累加器组合元素。Haskell的foldr类型为(a -> b -> b) -> b -> [a] -> b，将foldr f z [1,2,3]展开为f 1 (f 2 (f 3 z))。<sup>[20](https://faculty.cs.olemiss.edu/~hcc/csci450/ELIFP/Ch15/15_Higher_Order.pdf)</sup> Kotlin的fold接受初始累加器值和组合函数，依次将累加器与每个元素组合。<sup>[1](https://kotlinlang.org/docs/lambdas.html)</sup> map和filter都可以用foldr实现。<sup>[20](https://faculty.cs.olemiss.edu/~hcc/csci450/ELIFP/Ch15/15_Higher_Order.pdf)</sup>

Haskell和ML版本有文献记载的谱系：Haskell的map :: (a->b)->[a]->[b]和filter :: (a->Bool)->[a]->[a]源自Miranda的map :: (*->**)->[*]->[**]和filter :: (*->bool)->[*]->[*]。<sup>[11](https://kar.kent.ac.uk/88959/1/history.pdf_nocoversheet)</sup> OCaml手册编录了更广泛的高阶模式：柯里化与反柯里化、管道、组合与链接、迭代、过滤、映射、折叠（或归约）、排序以及绑定（或flat mapping）。<sup>[21](https://ocaml.org/docs/higher-order-functions)</sup>

## 类型论与高阶函数的类型化

在有类型lambda演算中，(α → β) → γ这样的函数类型描述一个消费从α到β的函数并产生γ的函数。剑桥手册《带类型的lambda演算》（*Lambda Calculus with Types*）讨论了lambda项的三大类型化类别——简单类型、递归类型和交集类型——这些形式体系用于Haskell和Clean等函数式编程语言以及Coq、Isabelle和HOL等证明助手。<sup>[12](https://www.cambridge.org/core/books/lambda-calculus-with-types/65DC18AC262498B0F93A688CBE748048)</sup> 巴伦德雷赫特（Barendregt）手册中关于带类型lambda演算的章节涵盖了柯里风格的带类型演算及其与无类型理论和编程范式的关系。<sup>[22](https://apollo.inf.upol.cz/~lastovicka/LKFP/Barendregt1992.pdf)</sup>

高阶函数也出现在类型系统本身的层面上。皮尔斯（Pierce）的《类型和程序设计语言》（*Types and Programming Languages*）用一章讨论高阶多态，即类型构造子作为参数传递的系统Fω，又用一章讨论高阶子类型，并将依赖类型视为进一步的扩展。<sup>[23](https://alliance.seas.upenn.edu/~bcpierce/tapl/contents.pdf)</sup>《Haskell 2010标准》将其高阶函数与静态多态类型化配对，因此map这样的函数携带多态类型(a -> b) -> [a] -> [b]而非单态类型。<sup>[13](https://www.haskell.org/onlinereport/haskell2010/haskellch1.html)</sup>

## 用数据说话：性能与编译器优化

高阶函数的开销主要是表示函数值的开销。标准表示是闭包，将代码指针与该代码中出现的自由变量的值配对，由彼得·兰丁（Peter Landin）在20世纪60年代中期提出；闭包仍然是采用及早求值的函数式编程中一等函数最常见的表示。<sup>[24](https://www.cs.tufts.edu/~nr/cs257/archive/olivier-danvy/defunc.pdf)</sup> 闭包分配通常比将额外参数压入栈更昂贵，这就是为什么lambda提升——一种将嵌套函数提升到顶层的编译器变换——以每个调用点函数参数的增加换取堆分配的减少。<sup>[8](https://haskell.foundation/hs-opt-handbook.github.io/src/Optimizations/GHC_opt/lambda_lifting.html)</sup>

**编译器优化可降低开销，且效果可测量。** 约翰·雷诺兹（John Reynolds）在20世纪70年代初提出了去函数化：用持有函数抽象的自由变量值的构造子引入一等函数，并用对相应构造子进行分派的case表达式消除它，从而将高阶程序转为一阶数据和分派。<sup>[24](https://www.cs.tufts.edu/~nr/cs257/archive/olivier-danvy/defunc.pdf)</sup> 在FUN语言的比较编译器框架中，去函数化产生的目标代码比闭包转换短最多33.76%，快最多69.51%。<sup>[25](https://www.joca.cn/EN/10.11772/j.issn.1001-9081.2016.09.2481)</sup> 在POPL 2023上提出的lambda集特化被描述为第一种对函数值使用方式不施加限制的特化去函数化技术，其可靠性和完备性已在Isabelle/HOL中机械证明；用它进行预处理在MLton下实现运行时加速最高达6.85倍，OCaml为3.45倍，Morphic为78.93倍。<sup>[10](https://dl.acm.org/doi/10.1145/3591260)</sup> 高阶内联和复制传播曾因希弗斯（Shivers）1991年的重流分析被证明实现成本过高而被认为不切实际，但在一个真实的ML系编译器中被证明可行，分析开销低于总编译时间的3%。<sup>[9](https://dl.acm.org/doi/10.1145/2692915.2628153)</sup>

**实测结果因环境而异。** 在Futhark——一种数据并行数组语言——中，将三十多个基准程序改写为使用高阶函数对运行时性能没有影响，尽管编译时间最多增加了一倍。<sup>[26](https://futhark-lang.org/publications/tfp18.pdf)</sup> 这与上述FUN语言的结果形成对比。<sup>[26](https://futhark-lang.org/publications/tfp18.pdf)</sup><sup> • </sup><sup>[25](https://www.joca.cn/EN/10.11772/j.issn.1001-9081.2016.09.2481)</sup> 在源代码层面，开销也因操作而异：filter和map构建新数组，而替代方法只计算部分值。<sup>[2](https://eloquentjavascript.net/3rd_edition/05_higher_order.html)</sup> foldr是向后递归的，如果完全求值，每个元素需要一个新栈帧，因此长列表或昂贵的折叠函数可能以栈溢出错误终止；其他语言将同一操作称为reduce或insert。<sup>[20](https://faculty.cs.olemiss.edu/~hcc/csci450/ELIFP/Ch15/15_Higher_Order.pdf)</sup> Kotlin因此建议对高阶函数使用内联函数，内联函数提供灵活的控制流并减轻函数值的开销。<sup>[1](https://kotlinlang.org/docs/lambdas.html)</sup>

## 缺乏一等函数的语言

一等地位是分级的，不具备一等地位的语言用较弱的机制模拟高阶模式。C函数指针满足前四个一等属性——可命名、可传递、可返回、可存储——但不满足第五个，因为所有函数必须在顶层声明，不能在任意上下文中创建。<sup>[3](https://cs.wellesley.edu/~cs251/s07/functions.pdf)</sup> 大多数传统命令式语言未完全支持高阶函数，尽管Java 8增加了对高阶编程的支持。<sup>[20](https://faculty.cs.olemiss.edu/~hcc/csci450/ELIFP/Ch15/15_Higher_Order.pdf)</sup> 相比之下，JavaScript从一开始就将函数视为可用作参数、对象方法和事件处理器的值，仅因时间限制而推迟函数表达式，同时在语法中为其保留位置。<sup>[27](https://www.cs.tufts.edu/comp/150FP/archive/brendan-eich/js-hopl.pdf)</sup> 在ECMAScript规范中，函数对象携带内部[[Call]]方法，使其成为一等可调用值。<sup>[28](https://tc39.es/ecma262/2026/multipage/ecmascript-language-functions-and-classes.html)</sup>

## 历史

lambda演算和组合子逻辑的历史分为20世纪20年代和30年代的密集期、约三十年的相对沉寂期，以及20世纪60年代末以来的高涨期。<sup>[29](https://www.labouseur.com/courses/tpl/History-of-Lambda-Calculus.pdf)</sup> 兰丁在20世纪60年代中期的闭包表示为函数作为值提供了运行时机制。<sup>[24](https://www.cs.tufts.edu/~nr/cs257/archive/olivier-danvy/defunc.pdf)</sup> 雷诺兹在20世纪70年代初的去函数化提供了一阶编译技术。<sup>[24](https://www.cs.tufts.edu/~nr/cs257/archive/olivier-danvy/defunc.pdf)</sup>

在1978年的图灵奖演讲中，约翰·巴克斯（John Backus）介绍了FP系统，其中程序就是没有变量的函数，建立在一组固定的组合形式之上。<sup>[30](https://www.cs.cmu.edu/~crary/819-f09/Backus78.pdf)</sup> FP中的一个重要思想是高阶函数，即接受函数作为参数并返回函数作为结果的函数，该演讲极大地推动了函数式编程领域。<sup>[30](https://www.cs.cmu.edu/~crary/819-f09/Backus78.pdf)</sup> ML于1973至1978年间在爱丁堡作为LCF验证系统的元语言出现；1990年，米尔纳（Milner）及其同事提出的Standard ML融合了HOPE和ML两支，加入了模式匹配和类型推断。<sup>[11](https://kar.kent.ac.uk/88959/1/history.pdf_nocoversheet)</sup> Miranda开发于1983至1986年，本质上是SASL加上代数类型和米尔纳的多态类型规则，其map和filter成为Haskell的map和filter。<sup>[11](https://kar.kent.ac.uk/88959/1/history.pdf_nocoversheet)</sup> Haskell委员会于1987年开始工作，《Haskell报告》1.2版于1992年发表在SIGPLAN Notices上，该语言以Haskell 98达到长期标准。<sup>[11](https://kar.kent.ac.uk/88959/1/history.pdf_nocoversheet)</sup>

## 近期发展

**Rust将其闭包系统扩展到异步代码。** RFC 3668为Fn系列trait约束增加了async约束修饰符，脱糖为一组与现有Fn trait平行的AsyncFn、AsyncFnMut和AsyncFnOnce trait；这些trait允许异步闭包返回从闭包捕获中借用的future，并让用户表达高秩异步回调约束。<sup>[31](https://rust-lang.github.io/rfcs/3668-async-closures.html)</sup> 所有当前稳定的可调用类型——包括闭包、函数项、函数指针和dyn Fn trait对象——在其输出实现Future时自动实现异步trait。<sup>[31](https://rust-lang.github.io/rfcs/3668-async-closures.html)</sup> 一份二手报道称，异步闭包于2025年2月在Rust 1.85中稳定，作为Rust 2024版的首要特性，而2026年5月28日发布的Rust 1.96.0在core::range下增加了兼容Copy的范围类型。<sup>[32](https://medium.com/rustaceans/youre-doing-async-rust-wrong-in-2026-rust-1-96-proves-it-d4a241455ebb)</sup>

**Java基于lambda的API获得了并发基础。** 虚拟线程——减少编写和观察高吞吐量并发应用工作量的轻量级线程——在JDK 19和JDK 20中预览，在JDK 21中最终确定。<sup>[33](https://openjdk.org/jeps/444)</sup> Oracle的文档指出，程序越是以线程每任务风格编写，虚拟线程的表现就越好，以其他风格编写的程序不应期望显著收益。<sup>[34](https://docs.oracle.com/en/java/javase/26/core/virtual-threads.html)</sup> Java SE 26中的结构化并发API派生默认在作用域内新虚拟线程上运行然后汇合的子任务，该API围绕将有返回值的方法作为任务传递而构建。<sup>[35](https://docs.oracle.com/en/java/javase/26/core/structured-concurrency.html)</sup>

**C++的高阶异步模型仍在形成中。** 一份2026年的C++委员会论文指出，repeat_effect_until、any_sender_of和variant_sender等sender适配器由stdexec参考实现提供，但尚未成为C++26工作文件的一部分，这反映了sender/receiver模型的持续演进，其中适配器是异步计算图上的高阶函数。<sup>[36](https://www.open-std.org/Jtc1/sc22/wg21/docs/papers/2026/p4014r0.pdf)</sup>

## References

1. [Higher-order functions and lambdas, Kotlin Documentation](https://kotlinlang.org/docs/lambdas.html)
2. [Higher-Order Functions, Eloquent JavaScript, 3rd ed., Chapter 5](https://eloquentjavascript.net/3rd_edition/05_higher_order.html)
3. [Functions as First-Class Values, Wellesley CS251 course notes](https://cs.wellesley.edu/~cs251/s07/functions.pdf)
4. [Higher Order Functions, CMU 15-150 lecture notes](https://www.cs.cmu.edu/~15150/resources/lectures/10/HigherOrderFunctions.pdf)
5. [Higher-Order Functions, Cornell CS 3110 textbook](https://cs3110.github.io/textbook/_sources/chapters/hop/higher_order.md)
6. [Higher-Order Functions, Principles and Practice of Programming Languages, CU Boulder](https://csci3155.cs.colorado.edu/pppl-course/book/higher-order-functions.html)
7. [Higher Order Functions, Clojure official guide](https://clojure.org/guides/higher_order_functions)
8. [Lambda Lifting, Haskell Optimization Handbook](https://haskell.foundation/hs-opt-handbook.github.io/src/Optimizations/GHC_opt/lambda_lifting.html)
9. [Practical and effective higher-order optimizations, ICFP 2015](https://dl.acm.org/doi/10.1145/2692915.2628153)
10. [Better Defunctionalization through Lambda Set Specialization, POPL 2023](https://dl.acm.org/doi/10.1145/3591260)
11. [Some History of Functional Programming Languages (D. A. Turner)](https://kar.kent.ac.uk/88959/1/history.pdf_nocoversheet)
12. [Lambda Calculus with Types (Barendregt, Dekkers, Statman, 2013), Cambridge](https://www.cambridge.org/core/books/lambda-calculus-with-types/65DC18AC262498B0F93A688CBE748048)
13. [Haskell 2010 Report, Chapter 1: Introduction](https://www.haskell.org/onlinereport/haskell2010/haskellch1.html)
14. [Higher-Order Functions, Composing Programs](https://composingprograms.com/3ed/higher-order-functions/)
15. [Higher Order Functions, Learn You a Haskell](https://learnyouahaskell.github.io/higher-order-functions.html)
16. [Haskell 2010 Report, Chapter 3: Expressions](https://www.haskell.org/onlinereport/haskell2010/haskellch3.html)
17. [RFC 0114: closures, Rust](https://rust-lang.github.io/rfcs/0114-closures.html)
18. [Closure expressions, The Rust Reference](https://doc.rust-lang.org/stable/reference/expressions/closure-expr.html)
19. [ML for the Working Programmer, Chapter 5 (L. C. Paulson), Cambridge](https://www.cl.cam.ac.uk/~lp15/MLbook/PDF/chapter5.pdf)
20. [Exploring Languages with Interpreters and Functional Programming, Chapter 15](https://faculty.cs.olemiss.edu/~hcc/csci450/ELIFP/Ch15/15_Higher_Order.pdf)
21. [Higher Order Functions, OCaml Documentation](https://ocaml.org/docs/higher-order-functions)
22. [Lambda Calculi with Types (H. Barendregt, 1992 handbook chapter)](https://apollo.inf.upol.cz/~lastovicka/LKFP/Barendregt1992.pdf)
23. [Types and Programming Languages (B. C. Pierce), table of contents](https://alliance.seas.upenn.edu/~bcpierce/tapl/contents.pdf)
24. [Defunctionalization at Work (O. Danvy and L. R. Nielsen)](https://www.cs.tufts.edu/~nr/cs257/archive/olivier-danvy/defunc.pdf)
25. [Design and implementation of performance comparing frame for higher-order code elimination, Journal of Computer Applications (China)](https://www.joca.cn/EN/10.11772/j.issn.1001-9081.2016.09.2481)
26. [High-Performance Defunctionalisation in Futhark](https://futhark-lang.org/publications/tfp18.pdf)
27. [JavaScript: the first 20 years (B. Eich and A. Wirzenius, HOPL)](https://www.cs.tufts.edu/comp/150FP/archive/brendan-eich/js-hopl.pdf)
28. [ECMAScript 2026 Language Specification, Functions and Classes](https://tc39.es/ecma262/2026/multipage/ecmascript-language-functions-and-classes.html)
29. [History of Lambda-calculus and Combinatory Logic (F. Cardone and J. R. Hindley)](https://www.labouseur.com/courses/tpl/History-of-Lambda-Calculus.pdf)
30. [Can Programming Be Liberated from the von Neumann Style? (J. Backus, 1978 Turing Award lecture)](https://www.cs.cmu.edu/~crary/819-f09/Backus78.pdf)
31. [RFC 3668: async closures, Rust](https://rust-lang.github.io/rfcs/3668-async-closures.html)
32. [You're Doing Async Rust Wrong in 2026, Rustaceans on Medium](https://medium.com/rustaceans/youre-doing-async-rust-wrong-in-2026-rust-1-96-proves-it-d4a241455ebb)
33. [JEP 444: Virtual Threads, OpenJDK](https://openjdk.org/jeps/444)
34. [Virtual Threads, Java SE 26 documentation, Oracle](https://docs.oracle.com/en/java/javase/26/core/virtual-threads.html)
35. [Structured Concurrency, Java SE 26 documentation, Oracle](https://docs.oracle.com/en/java/javase/26/core/structured-concurrency.html)
36. [P4014R0: The Sender Sub-Language, C++ WG21 paper, 2026](https://www.open-std.org/Jtc1/sc22/wg21/docs/papers/2026/p4014r0.pdf)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › Formal logic and foundations › Logical calculi and logical syntax › Lambda calculus and type theory

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/higher-order-function

English original: https://www.edgepedia.org/higher-order-function
