indices,isEmpty,lazy,startIndex,Index,Generator,Element,Index,SubSequence"
root: "/v2.0"
---

<div class="intro-declaration"><code class="language-swift">struct CollectionOfOne&lt;Element&gt;</code></div>

<div class="discussion comment">
    <p>A collection containing a single element of type <code>Element</code>.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<code class="inherits">CollectionType, Indexable, SequenceType, _Reflectable</code>
<span class="viz"><a href=