0% found this document useful (0 votes)
20 views

Funtional Programming

Functional programming is a declarative programming paradigm where programs are constructed by applying and composing functions. Functional programming treats functions as first-class citizens that can be passed as arguments and returned from other functions. Functional programming is sometimes treated as synonymous with purely functional programming where functions are deterministic mathematical functions without side effects.

Uploaded by

Andy Bourgeois
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Funtional Programming

Functional programming is a declarative programming paradigm where programs are constructed by applying and composing functions. Functional programming treats functions as first-class citizens that can be passed as arguments and returned from other functions. Functional programming is sometimes treated as synonymous with purely functional programming where functions are deterministic mathematical functions without side effects.

Uploaded by

Andy Bourgeois
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Funtional 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.
Functional programming is sometimes treated as synonymous with purely functional
programming, a subset of functional programming which treats all functions as
deterministic mathematical functions, or pure functions. When a pure function is called
with some given arguments, it will always return the same result, and cannot be affected
by any mutable state or other side effects. This is in contrast with impure procedures,
common in imperative programming, which can have side effects (such as modifying the
program's state or taking input from a user). Proponents of purely functional
programming claim that by restricting side effects, programs can have fewer bugs, be
easier to debug and test, and be more suited to formal verification.[1][2]

You might also like