Functional programming aims to mimic mathematical functions by making computation based on functions rather than processes with side effects. It uses functions, higher-order functions, immutability, recursion, and lazy evaluation as building blocks rather than objects, encapsulation, polymorphism, and inheritance. Code in a functional style, such as using sum rather than a for loop, can have benefits including being easier to reuse and test as well as enabling concurrency due to a lack of side effects from immutability.
1 of 9
Download to read offline
More Related Content
Functional - Fundamentals and Perspective Functional vs OO
2. Fundamentals
The objective of the design of a
Functional Programming is to mimic
mathematical functions to the
greatest extend possible.
The basic process of computation is
fundamentally diferent in a functional
than in an imperative language.