Skip to content

Functional Programming

Functional programming (FP) is a paradigm that treats computation as the evaluation of pure functions and avoids side effects and mutable state.

  • Core Principles — Pure functions, immutability, and declarative style
  • Immutability — Avoiding mutation with spread and copy patterns

Pure functions + immutability + declarative style. Avoid side effects and shared mutable state. Leads to testable, predictable, maintainable code.