First-class citizen in the context of Function (computer programming)


First-class citizen in the context of Function (computer programming)

First-class citizen Study page number 1 of 1

Play TriviaQuestions Online!

or

Skip to study material about First-class citizen in the context of "Function (computer programming)"


⭐ Core Definition: First-class citizen

In a given programming language design, a first-class object is an entity which supports all the operations generally available to other entities. These operations typically include being passed as an argument, returned from a function, and assigned to a variable.

↓ Menu
HINT:

In this Dossier

First-class citizen in the context of Functional programming

In computer science, functional programming is a programming paradigm where programs are constructed by applying and composing functions. It is a declarative programming paradigm in which function definitions are trees of expressions that map values to other values, rather than a sequence of imperative statements which update the running state of the program.

In functional programming, functions are treated as first-class citizens, meaning that they can be bound to names (including local identifiers), passed as arguments, and returned from other functions, just as any other data type can. This allows programs to be written in a declarative and composable style, where small functions are combined in a modular manner.

View the full Wikipedia page for Functional programming
↑ Return to Menu