Functional programming with python
15
Functional Programming with Python Marcelo Cure
-
Upload
marcelo-cure -
Category
Software
-
view
174 -
download
3
Transcript of Functional programming with python
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