First-Class Functions is an actively used design pattern. 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.

?Years Old

Languages with First-Class Functions include hack, javascript

Example from javascript:


Last updated August 9th, 2020

Edit First-Class Functions on GitHub