le lang-out" title="generator-example.out">
<div class="highlight"><pre><span></span><code>{ value: &#39;first&#39;, done: false }
{ value: &#39;second&#39;, done: false }
{ value: &#39;third&#39;, done: false }
{ value: undefined, done: true }
</code></pre></div>
</div>
<figure id="style-checker-iterator" class="figure-here">
  <img src="./iterator.svg" alt="The Iterator pattern"/>
  <figcaption markdown="1">Figure 14.3: Finding nodes in the tree using the Iterator pattern.</figcaption>
</figure>

<p>As an