<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I should have said&nbsp;<div class=""><br class=""></div><div class="">myArray += [myArrayItem]</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Dec 21, 2015, at 9:28 AM, Paul Ossenbruggen &lt;<a href="mailto:possen@gmail.com" class="">possen@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">You can do this already<div class=""><br class=""></div><div class="">left += [right]</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Dec 21, 2015, at 9:22 AM, James Campbell via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I already have an implementation:<div class=""><br class=""></div><div class=""><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="">&nbsp; &nbsp; left.</span><span class="">append</span><span class="">(right)</span></p><p class=""><span class="">}</span></p><p class=""><span class=""><br class=""></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 class=""></p><p class="">Which is shorter and a lot of languages such as Ruby already use this.</p><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><span style="font-size:16px;line-height:19.2px" class=""></span><span style="font-size:12.8px" class="">&nbsp;Wizard</span><br class=""></div><div class=""><a href="mailto:james@supmenow.com" target="_blank" class="">james@supmenow.com</a></div><div class="">+44 7523 279 698</div></div></div></div></div></div>
</div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=emrIhnP1hIf76Foxxv4NNJQX-2FWhcznESwKBSwD1MEwwH0P0Lpy9fmFWxz7xwN4HirrQ6bdNZcJKIRI9B-2FSIkIgOxUN9v4vPw5uP5lvZVhfdZMDAh8eQiIiMB1VNpDOuqMMr5UabH8HybrZCkDCmUJe71xQA-2BczfugL5x4wLL53Kf3LU8F9xZwCSgiT2OjidU1ZYMZ4uOlmdYZmoa8Oj35cv3iDoL6VWYtRTuvw12Zk4-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class=""></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>