First-class function
- 头等函数(头等函数是指函数可以作为参数、返回值、赋值给变量或存储在数据结构中。支持匿名函数的语言将函数视为普通变量。概念由克里斯托弗·斯特雷奇在1960年代中期提出)
First-class function
-
abstract:
In computer science, a programming language is said to have first-class functions if it treats functions as first-class citizens. Specifically, this means the language supports passing functions as arguments to other functions, returning them as the values from other functions, and assigning them to variables or storing them in data structures.
以上来源于:
WordNet