<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 13, 2016, at 7:50 AM, Benzi 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="">The closest right now you can achieve would be:<div class=""><br class=""></div><div class=""><div class="">func with&lt;T&gt;(item:T, apply:(T)-&gt;Void) {</div><div class="">&nbsp; &nbsp; apply(item)</div><div class="">}</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">let label = UILabel()</div><div class="">label.highlighted // defaults to false</div><div class=""><br class=""></div><div class="">with(label) {</div><div class="">&nbsp; &nbsp; $0.highlighted = true</div><div class="">}</div><div class=""><br class=""></div><div class="">label.highlighted // is now true</div></div></div></div></blockquote><br class=""></div><div>As a reference type, you can just go ahead and assign:</div><div><br class=""></div><div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">let</span><span style="font-variant-ligatures: no-common-ligatures" class=""> label&nbsp; = </span><span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">UILabel</span><span style="font-variant-ligatures: no-common-ligatures" class="">()</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; color: rgb(112, 61, 170);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">label</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">.</span><span style="font-variant-ligatures: no-common-ligatures" class="">highlighted</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> = </span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">true</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo; color: rgb(112, 61, 170);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class=""><br class=""></span></div></div><div>-- E</div><div><br class=""></div><br class=""></body></html>