Functional Python Programming – Second Edition: Monads, Lazy evaluation, Generator functions, and more
Create succinct and expressive implementations with functional programming in Python
If you’re a Python developer who wants to discover how to take the power of functional programming and bring it into your own programs then this book is essential for you, even if you know next to nothing about the paradigm.
Starting with a general overview of functional concepts you’ll explore common functional features such as first-class and higher-order functions, pure functions and more, and how these are accomplished in Python 3.6 to give you the core foundations you’ll build upon. After that, you’ll discover common functional optimizations for Python to help your apps reach even higher speeds. You will learn FP concepts such as Lazy Evaluation using Python’s generator functions and expressions. Going forward, you will learn to design and implement decorators to create composite functions. You’ll also explore data preparation techniques and data exploration in depth, along with learning how the Python standard library fits the functional programming model. Finally, to top off your journey into the world of function Python you’ll at look at the PyMonad project and some larger examples to put everything into perspective.
This book is for Python developers who would like to perform Functional programming with Python. Python Programming knowledge is assumed.
Chapter 1: Understanding Functional Programming
Chapter 2: Introducing Essential Functional Concepts
Chapter 3: Functions, Iterators, And Generators
Chapter 4: Working With Collections
Chapter 5: Higher-Order Functions
Chapter 6: Recursions And Reductions
Chapter 7: Additional Tuple Techniques
Chapter 8: The Itertools Module
Chapter 9: More Itertools Techniques
Chapter 10: The Functools Module
Chapter 11: Decorator Design Techniques
Chapter 12: The Multiprocessing And Threading Modules
Chapter 13: Conditional Expressions And The Operator Module
Chapter 14: The Pymonad Library
Chapter 15: A Functional Approach To Web Services
Chapter 16: Optimizations And Improvements