What is Functional Programming?
Functional programming (FP) 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.
Why Learn FP?
- Write more predictable code
- Facilitates debugging and testing
- Promotes reusable code with pure functions
- Great for processing large data sets