Lazy enumeration isnât magic; itâs just a matter of hard work Ruby 2.0âs new lazy enumerator feature seems like magic. In case you havenât tried it yet, it allows you to iterate over an infinite series of values and take just the values you want. It brings the functional programming concept of lazy evaluation to Ruby - at least for enumerations. For example, in Ruby 1.9 and earlier you would run i
{{#tags}}- {{label}}
{{/tags}}