Functional Programming¶
Functional Programming (FP) is a programming paradigm where programs are built by combining pure functions, avoiding shared state, and minimizing side effects. Instead of focusing on ‘how to do things’ step by step, FP focuses on ‘what to compute’ by composing functions.
PHP supports anonymous functions, closures, iterators and higher-order functions, needed for Functional programming.
See also Functional Programming in PHP · 2nd Edition, Thinking Functionally in PHP? and Functional Programming with PHP Generators.
Related : OOP (Object Oriented Programming), Paradigm, Partial Function, Procedural Programming, Side Effect, Declarative Programming, Determinism, Functor, Imperative Programming, Memoization
Related packages : phel-lang/phel-lang