<div dir="ltr">I already have an implementation:<div><br></div><div>







<p class=""><span class="">func</span><span class=""> &lt;&lt;&lt;T&gt;(</span><span class="">var</span><span class=""> left: </span><span class="">Array</span><span class="">&lt;</span><span class="">T</span><span class="">&gt;, right:</span><span class="">T</span><span class="">)</span></p>
<p class=""><span class="">{</span></p>
<p class=""><span class="">    left.</span><span class="">append</span><span class="">(right)</span></p>
<p class=""><span class="">}</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">It makes</span></p><p class="">myArray.append(myArrayItem)</p><p class="">become:</p><p class="">myArray &lt;&lt; myArrayItem</p><p class=""><br></p><p class="">Which is shorter and a lot of languages such as Ruby already use this.</p><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><span style="font-size:16px;line-height:19.2px"></span><span style="font-size:12.8px"> Wizard</span><br></div><div><a href="mailto:james@supmenow.com" target="_blank">james@supmenow.com</a></div><div>+44 7523 279 698</div></div></div></div></div></div>
</div></div>