11.4 Summary
We started with a quick look at some itertools
and functools
component features that overlap with components of the toolz
package. A great many design decisions involve making choices. It’s important to know what’s built in via Python’s Standard Library. This makes it easier to see what the benefits of reaching out to another package might be.
The central topic of this chapter was a look at the toolz
package. This complements the built-in itertools
and functools
modules. The toolz
package extends the essential concepts using terminology that’s somewhat more accessible to folks with experience in other languages. It also provides a helpful focus on the data structures used by JSON and CSV.
In the following chapters, we’ll look at how we can build higher-order functions using decorators. These higher-order functions can lead to slightly simpler and clearer syntax. We can use decorators to define an isolated aspect that we need to incorporate...