November 2019
Intermediate to advanced
336 pages
11h 30m
English
This chapter covers
Throughout the book, we’ve looked at various versions of a very common algorithm, map(), and in chapter 10 we saw how iterators provide an abstraction that allows us to reuse it across various data structures. In this chapter, we’ll see how we can extend this algorithm beyond iterators and provide an even more general version. This powerful algorithm allows us to mix and match generic types and functions, and can help by providing a uniform way to handle errors.
After we go over a few examples, we’ll provide a definition for this ...
Read now
Unlock full access