Video time: 03m25s
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!
Exercise
What happens if the chunk size is 1? What happens if the chunk size is infinity?
Exercise
Devise experiments to determine the chunk size of the following data structures:
- vector
- numeric range (using
range
function) - iteration (using
iterate
function) - repetition (using
repeat
function) - list (using
list
function)