Chapter 4 Building Your Own Lazy Enumerables

In this chapter, you’ll implement your own cheap counterfeit of Ruby’s lazy enumerable using the concepts you’ve learned in the rest of this book. Going through this process will also expose you to some of the more advanced concepts of blocks, enumerables, and enumerations.

Get Mastering Ruby Closures now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.