nc-insert_atindex_">mutating func insert(<wbr>_:<wbr>atIndex:)</a>
        
<div class="comment collapse" id="comment-func-insert_atindex_"><div class="p">
    <p>Insert <code>newElement</code> at index <code>i</code>.</p>

<p>Invalidates all indices with respect to <code>self</code>.</p>

<p><strong>Complexity:</strong> O(<code>self.count</code>).</p>

    <h4>Declaration</h4>    
    <code class="language-swift">mutating func insert(newElement: Character, atIndex i: String.CharacterView.Index)</code>
    