Search

Search IconIcon to open search

Functional Programming

Last updated by Simon Späti

Functional Programming is a style of building functions that threaten computation as a mathematical function that avoids changing state and mutable data. It is a declarative programming paradigm, which means programming expressively and declaratively as opposed to imperatively.

Here you see the most Functional Programming Language.


Let’s start with a quick primer/refresher on what functional programming is about, from the  functional programming Wikipedia page:

In  computer sciencefunctional programming is a  programming paradigm — a style of building the structure and elements of  computer programs — that treats  computation as the evaluation of  mathematical functions and avoids changing- state and  mutable data. It is a  declarative programming paradigm, which means programming is done with  expressions [1] or declarations [2] instead of  statements. In functional code, the output value of a function depends only on the  arguments that are passed to the function, so calling a function f twice with the same value for an argument x produces the same result f(x)each time; this is in contrast to  procedures depending on a  local or  global state, which may produce different results at different times when called with the same arguments but a different program state. Eliminating  side effects, i.e., changes in state that do not depend on the function inputs, can make it much easier to understand and predict the behavior of a program, which is one of the key motivations for the development of functional programming.

# Fleeting Notes


Origin:
References:
Created 2022-02-05