PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

First-Class Functions

First-Class Functions

First-Class Functions are a language feature.

In computer science, a programming language is said to have first-class functions if it treats functions as first-class citizens. 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.

Languages with First-Class Functions include JavaScript, Hack

Example from JavaScript:

[2.0,1.1].map(Math.round)

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub