ession.
</p>
<h2>Example 2: Iterating over an indexed data structure
</h2>
<p>Another common usage for iteration in any language is iterating over the items
in a data structure, like items in an array, characters in a string, or
key-value pairs in a table.
</p>
<p>Say we have an array of names that we want to print out. We will again start
with a simple <code class="mendoza-code">while</code> loop which we will refine into more idiomatic
expressions.
</p>
<p>First, we will define our array of names:
</p>
<p