Functional Programming in Python Book free chapter
by Martin McBride
$0+
A comprehensive introduction to functional in Python. This book covers:
The three Python paradigms - functional, object-oriented, and procedural programming.
Functions as objects, using functions as arguments and return values, lambda functions.
Mutable and immutable objects, the advantages of immutability, singletons.
Recursion, including tail recursion and memoization.
Closures and inner functions.
Iterators, iterables, sequences and lazy iteration.
Transforming iterables with map, filter, and zip
Reducing iterables and the map-reduce pattern.
Comprehensions and generator comprehensions.
Generators.
Partial application and currying with built-in functions and the oslash library.
Functors and monads with the PyMonad library.
No prior knowledge of functional programming is required, just a working knowledge of Python.