出典:Wikipedia
出典:『Wikipedia』 (2011/06/22 16:45 UTC 版)
In computer science, a programming language is said to have first-class functions if it treats functions as first-class objects. Specifically, this means that 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. Some authors require support for anonymous functions as well. The term was coined by Christopher Strachey in the context of “functions as first-class citizens” in the mid-1960s.