Functional Programming

Functional programming (FP) is a programming paradigm where programs are constructed by applying and composing functions. It is rooted in mathematical logic and treats computation as the evaluation of mathematical functions, avoiding changes in state and mutable data. In functional…