Functional programming is a programming paradigm where programs are constructed by applying and composing functions. Functional programming is declarative rather than imperative, and the application state flows through pure functions. Functional code tends to be more predictable and easier to test than imperative or object-oriented code — but if you’re unfamiliar with it and the common patterns associated with it, functional code can also seem a lot denser. Learn which of the programming languages are functional.
Functional Programming (FP) is programming based on composing pure functions while avoiding shared state, mutable data, and side effects.
- Functional Programming is a declarative programming approach instead of imperative. Instead of building an algorithm on how to do something step by step, functional developers describe the result by functions and composition of functions.
- Pure Functions – These functions return value only determined by their input without any side effects. Pure Functions are the “heart” of functional programming. Using pure functions means maintaining consistent results.
- What is Functional Programming?
- Functional Programming Languages
- Lambda Functions
- Higher-Order Functions