Functional Programming with Python Marcelo Cure
Functional Programming
Expressions over statements (instead of using a whole for, use map/filter/reduce)
No side effect
Immutability
Simpler code
Expressiveness
High Order Functions
Functions that manipulate functions
Send functions to functions allowing different behaviour
List Comprehentions
Comes from mathematics
{ x2 | x ∈ ℕ }
x * 2 given x is contained on the natural numbers
Immutability
● The same happens to other types: string, float, tuples, etc● Lists and Dictionaries are mutable● Objects are also mutable