ount:)</code> function. The following example creates a
collection containing the name &quot;Humperdinck&quot; repeated five times:</p>
<pre><code class="language-swift">let repeatedName = repeatElement(&quot;Humperdinck&quot;, count: 5)
for name in repeatedName {
    print(name)
}
// &quot;Humperdinck&quot;
// &quot;Humperdinck&quot;
// &quot;Humperdinck&quot;
// &quot;Humperdinck&quot;
// &quot;Humperdinck&quot;
</code></pre>
</div><h3>Instance Variables</h3><div id="count-e2942a04780e223b215eb8b663cf5353