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

<div class="intro-declaration"><code class="language-swift">struct Slice&lt;Base : Indexable&gt;</code></div>

<div class="discussion comment">
    <p>A view into a sub-sequence of elements of another collection.</p>

<p>A <code>Slice</code> instance stores the base collection, the start and end indices of
the view.  It does not copy the elements from the collection into separate
storage. Thus, creating a slice 