Want this course?
Gotcha: Effects and chunking
Course: Lazy Sequences
This lesson teaches the care needed when mixing effects and laziness, as well as what chunking is. This lesson includes a video screencast with slides and exercises. The video is 5 minutes long, and the exercises might take 10 minutes.
The time has come to talk about chunking. And about effects! These are two gotchas in the lazy sequence world that you should know up front, before it’s too late!
What happens if the chunk size is 1? What happens if the chunk size is infinity?
Devise experiments to determine the chunk size of the following data structures:
- numeric range (using
- iteration (using
- repetition (using
- list (using