How Lazy Evaluation Works in Ruby

Let’s be lazy — iterate only what we really need!

Gernot Gradwohl
Better Programming
Published in
4 min readDec 1, 2021

--

Photo by Drew Coffman on Unsplash

During our day-to-day work, we as developers quite often have to deal with big data or — sometimes — data of unknown size. We parse big files and import the stuff we need, we are scraping some data from various websites in search of something, or we are just working with some big data from our own database to transform it…

--

--

Passionate programmer. Love the elegance of Ruby. Recently started to dig into functional programming with Elixir.