Chapter 8. Functional and Reactive Programming Features
In this chapter, we'll look at the following recipes:
Writing generator functions with the yield statement
Using stacked generator expressions
Applying transformations to a collection
Picking a subset – three ways to filter
Summarizing a collection – how to reduce
Combining map and reduce transformations
Implementing "there exists" processing
Creating a partial function
Simplifying complex algorithms with immutable data structures
Writing recursive generator functions with the yield from statement