  <p>Rotates the elements of the collection so that the element
at <code>middle</code> ends up first.</p>
<div class="aside aside-complexity">
    <p class="aside-title">Complexity</p>
    O(<em>n</em>)

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class