January 2020
Intermediate to advanced
312 pages
10h 22m
English
This chapter covers
In chapter 2 (section 2.1.2, to be exact), I introduced the idea that our beloved map function is lazy by default; that is, it only evaluates when the value is needed downstream. In this chapter, we’ll look at a few of the benefits of laziness, including how we can use laziness to process big data on our laptop. We’ll focus on the benefits of laziness in two contexts:
With file processing, we’ll see that laziness allows us to process much more data than could fit in memory without ...