<div dir="ltr">Ohh didn't know that :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 21, 2015 at 5:30 PM, Paul Ossenbruggen <span dir="ltr"><<a href="mailto:possen@gmail.com" target="_blank">possen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I should have said <div><br></div><div>myArray += [myArrayItem]</div><div><div class="h5"><div><br></div><div><div><blockquote type="cite"><div>On Dec 21, 2015, at 9:28 AM, Paul Ossenbruggen <<a href="mailto:possen@gmail.com" target="_blank">possen@gmail.com</a>> wrote:</div><br><div><div style="word-wrap:break-word">You can do this already<div><br></div><div>left += [right]</div><div><br><div><blockquote type="cite"><div>On Dec 21, 2015, at 9:22 AM, James Campbell via swift-evolution <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> wrote:</div><br><div><div dir="ltr">I already have an implementation:<div><br></div><div><p><span>func</span><span> <<<T>(</span><span>var</span><span> left: </span><span>Array</span><span><</span><span>T</span><span>>, right:</span><span>T</span><span>)</span></p><p><span>{</span></p><p><span> left.</span><span>append</span><span>(right)</span></p><p><span>}</span></p><p><span><br></span></p><p><span>It makes</span></p><p>myArray.append(myArrayItem)</p><p>become:</p><p>myArray << myArrayItem</p><p><br></p><p>Which is shorter and a lot of languages such as Ruby already use this.</p><div><br></div>-- <br><div><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><a href="tel:%2B44%207523%20279%20698" value="+447523279698" target="_blank">+44 7523 279 698</a></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="min-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">
_______________________________________________<br>swift-evolution mailing list<br><a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></div></div></blockquote></div><br><br clear="all"><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>