functional programming
Sign in to saveAlso known as FP
programming paradigm based on applying and composing functions
Functional programming is a style of computer programming that organizes code around functions—reusable blocks of instructions that take inputs and produce outputs—rather than around objects that store data and change state. This approach can make programs easier to understand, test, and maintain because functions behave predictably and don't rely on hidden changes happening elsewhere in the code.
AI-generated from the Wikipedia summary — may contain errors.
In the Vinony graph
Within Vinony's link graph, functional programming is referenced by 811 other articles, and connects out to parallel computing, class and imperative programming.
Vinony files it under Functional programming, Programming language comparisons and Programming paradigms.
Its subject is documented across 57 Wikipedia language editions.
Wikidata facts
- Subclass of
- declarative programming
Show 5 more facts
- topic's main category
- Category:Functional programming
- Stack Exchange tag
- cstheory.stackexchange.com/tags/functional-programming
- Commons category
- Functional programming
- on focus list of Wikimedia project
- Wikipedia:Vital articles/Level/4
- Mastodon instance URL
- functional.cafe
via Wikidata · CC0
~39 min read
Encyclopedic overview
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 entities, 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.
Excerpted from Wikipedia’s “functional programming” article, available under the CC BY-SA 4.0 licence.