<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=""><br class=""><div><blockquote type="cite" class=""><div class="">Le 7 juin 2017 à 13:28, Adrian Zubarev <<a href="mailto:adrian.zubarev@devandartist.com" class="">adrian.zubarev@devandartist.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class="" style="font-family: Helvetica, Arial; font-size: 13px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><div class=""><blockquote type="cite" class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><div class="">Xiaodi, Adrian, you are actively pushing so that something that was allowed, well compiled (no runtime issue), and covered actual uses cases, becomes forbidden. Without any developer advantage that would somehow balance the change.</div><div class=""><br class=""></div><div class="">That's called a regression.</div></div></div></span></blockquote></div><div class=""><br class="Apple-interchange-newline"></div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: 'Fira Code';" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">func</span><span style="font-variant-ligatures: no-common-ligatures;" class=""><span class="Apple-converted-space"> </span>foo(</span><span style="font-variant-ligatures: no-common-ligatures;" class="">_</span><span style="font-variant-ligatures: no-common-ligatures;" class="">: (</span><span style="font-variant-ligatures: no-common-ligatures;" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures;" class="">,<span class="Apple-converted-space"> </span></span><span style="font-variant-ligatures: no-common-ligatures;" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures;" class="">)) {}</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: 'Fira Code';" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">func</span><span style="font-variant-ligatures: no-common-ligatures;" class=""><span class="Apple-converted-space"> </span>bar(</span><span style="font-variant-ligatures: no-common-ligatures;" class="">_</span><span style="font-variant-ligatures: no-common-ligatures;" class="">:<span class="Apple-converted-space"> </span></span><span style="font-variant-ligatures: no-common-ligatures;" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures;" class="">,<span class="Apple-converted-space"> </span></span><span style="font-variant-ligatures: no-common-ligatures;" class="">_</span><span style="font-variant-ligatures: no-common-ligatures;" class="">:<span class="Apple-converted-space"> </span></span><span style="font-variant-ligatures: no-common-ligatures;" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures;" class="">) {}</span></div><div class=""><br class="webkit-block-placeholder"></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: 'Fira Code';" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">type(of: foo) == type(of: bar)<span class="Apple-converted-space"> </span></span><span style="font-variant-ligatures: no-common-ligatures;" class="">//=> true - It's a BUG!</span></div></div></div></blockquote></div><br class=""><div class="">Then please push for the bug to be fixed. You are much better than am I at that. This does not mean breaking Swift 3 ergonomics.</div><div class=""><br class=""></div><div class="">The bug you mention involves type comparison, which is nowhere to be seen in the Swift 3 ergonomics checklist below. I'm sure we can all be happy.</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">func</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> sum1(</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">_</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> lhs: </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">_</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> rhs: </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">) -> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">return</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> lhs + rhs }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">func</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> sum2(lhs: </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, rhs: </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">) -> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">return</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> lhs + rhs }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">func</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> sum3(tuple: (</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">)) -> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">return</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> tuple.0 + tuple.1 }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">func</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> sum4(tuple: (lhs: </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, rhs: </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">)) -> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">return</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> tuple.lhs + tuple.rhs }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;"><span class="" style="font-variant-ligatures: no-common-ligatures;"></span><br class=""></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 143, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span><span class="" style="font-variant-ligatures: no-common-ligatures;">// two arguments</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">func</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> f1(</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">_</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> closure: (</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">) -> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">) { closure(1, 2) }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f1</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { lhs, rhs </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> lhs + rhs }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f1</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { (lhs, rhs) </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> lhs + rhs }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f1</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { tuple </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> tuple.0 + tuple.1 }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f1</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { (tuple) </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> tuple.0 + tuple.1 }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f1</span><span class="" style="font-variant-ligatures: no-common-ligatures;">(+)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f1(sum1)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f1(sum2)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f1(sum3)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f1(sum4)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><br class="webkit-block-placeholder"></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 143, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span><span class="" style="font-variant-ligatures: no-common-ligatures;">// two arguments, with documentation names</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">func</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> f2(</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">_</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> closure: (</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">_</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> a: </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">_</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> b: </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">) -> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">) { closure(1, 2) }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f2</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { lhs, rhs </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> lhs + rhs }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f2</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { (lhs, rhs) </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> lhs + rhs }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f2</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { tuple </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> tuple.0 + tuple.1 }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f2</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { (tuple) </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> tuple.0 + tuple.1 }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f2</span><span class="" style="font-variant-ligatures: no-common-ligatures;">(+)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f2(sum1)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f2(sum2)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f2(sum3)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f2(sum4)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><br class="webkit-block-placeholder"></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 143, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span><span class="" style="font-variant-ligatures: no-common-ligatures;">// one tuple argument</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">func</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> f3(</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">_</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> closure: ((</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">)) -> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">) { closure((1, 2)) }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f3</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { lhs, rhs </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> lhs + rhs }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f3</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { (lhs, rhs) </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> lhs + rhs }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f3</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { tuple </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> tuple.0 + tuple.1 }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f3</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { (tuple) </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> tuple.0 + tuple.1 }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f3</span><span class="" style="font-variant-ligatures: no-common-ligatures;">(+)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f3(sum1)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f3(sum2)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f3(sum3)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f3(sum4)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><br class="webkit-block-placeholder"></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 143, 0);"><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);"> </span><span class="" style="font-variant-ligatures: no-common-ligatures;">// one keyed tuple argument</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">func</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> f4(</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">_</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> closure: ((a: </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">, b: </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">)) -> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(60, 89, 167);">Int</span><span class="" style="font-variant-ligatures: no-common-ligatures;">) { closure((a: 1, b: 2)) }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f4</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { lhs, rhs </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> lhs + rhs }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f4</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { (lhs, rhs) </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> lhs + rhs }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f4</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { tuple </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> tuple.a + tuple.b }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f4</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> { (tuple) </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(129, 53, 160);">in</span><span class="" style="font-variant-ligatures: no-common-ligatures;"> tuple.a + tuple.b }</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> </span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(32, 128, 159);">f4</span><span class="" style="font-variant-ligatures: no-common-ligatures;">(+)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f4(sum1)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f4(sum2)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f4(sum3)</span></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;"><span class="" style="font-variant-ligatures: no-common-ligatures;"> f4(sum4)</span></div></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;">Gwendal</span></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div></body></html>