Tag: functional programming

Functional Programming is a programming paradigm … that treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data. It is a declarative programming paradigm, … programming is done with expressions or declarations instead of statements.

In functional code, the output value of a function depends only on the arguments that are passed to the function; calling a function f twice with the same value for an argument x produces the same result f(x) each time [because there is no mutable state]