pan class="co">// ... define idxs = (2, 1, 3)</span></span>
<span id="cb18-4"><a href="#cb18-4" aria-hidden="true" tabindex="-1"></a>a[idxs] = a;</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>In this case, it is evident why the right-hand side needs to be copied before the assignment.</p>
<p>It is tempting (but wrong) to think of the assignment <code>a[2:3] =   a[1:2]</code> as executing the following assignments.</p>
<div class="sourceCod