></a>a[idxs] = c;   <span class="co">// result: a == (1, 9, 5)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>The result above can be worked out by noting that the assignment sets <code>a[idxs[1]]</code> (<code>a[3]</code>) to <code>c[1]</code> (<code>5</code>) and <code>a[idxs[2]]</code> (<code>a[2]</code>) to <code>c[2]</code> (<code>9</code>).</p>
<p>The same principle applies when there are many multiple indexes, as in the follow