Functional Programming Introduction¶
- Functional Programming means no (or controlled) mutable state and sideeffect-free expressions
No mutable state¶
f(x)
only depends on the definition off
and the value ofx
(Referential Transparency)- No assignments or control structures
Functions¶
- Functions are first-class-citizens, a.k.a. a "primitive" data type