<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 à 12:33, Gwendal Roué <<a href="mailto:gwendal.roue@gmail.com" class="">gwendal.roue@gmail.com</a>> a écrit :</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=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">Le 7 juin 2017 à 12:03, Adrian Zubarev via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><p style="margin: 15px 0px; -webkit-margin-before: 0px; font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Well please no:</p><p style="margin: 15px 0px; font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<code style="font-family: Menlo, Consolas, 'Liberation Mono', Courier, monospace; font-size: 10pt; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: rgb(248, 248, 248); color: inherit; border: 1px solid rgb(234, 234, 234); margin: 0px 2px; padding: 0px 5px; word-break: normal; word-wrap: normal; -webkit-margin-before: 0px;" class=""><span class="Apple-converted-space"> </span>let fn2: ((Int, Int)) -> Void = { lhs, rhs in }<span class="Apple-converted-space"> </span></code></p><p style="margin: 15px 0px; font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Instead use destructuring sugar pitched by Chris Lattner on the other thread:</p><p style="margin: 15px 0px; font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><code style="font-family: Menlo, Consolas, 'Liberation Mono', Courier, monospace; font-size: 10pt; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: rgb(248, 248, 248); color: inherit; border: 1px solid rgb(234, 234, 234); margin: 0px 2px; padding: 0px 5px; word-break: normal; word-wrap: normal; -webkit-margin-before: 0px;" class="">let fn2: ((Int, Int)) -> Void = { ((lhs, rhs)) in }</code></p></div></blockquote></div><br class=""><div class=""><div class=""><div class=""><div class="">Despite Chris Lattern being a semi-god, his double-parenthesis suggestion cruelly lacks in terms of user ergonomics. The compiler should be able to deal with the following code snippet, just like Swift 3 does:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 143, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">// two arguments</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">func</span><span style="font-variant-ligatures: no-common-ligatures" class=""> f1(</span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">_</span><span style="font-variant-ligatures: no-common-ligatures" class=""> closure: (</span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">, </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">) -> </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">) { closure(1, 2) }</span></div></div></div></div></div></div></div></blockquote><blockquote type="cite" class="">[...]</blockquote><br class=""></div><div>Here is the full extent of the remarquable Swift 3 ergonomics. This full snippet compiles in Swift 3:</div><div><br class=""></div><div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">func</span><span style="font-variant-ligatures: no-common-ligatures" class=""> sum1(</span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">_</span><span style="font-variant-ligatures: no-common-ligatures" class=""> lhs: </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">, </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">_</span><span style="font-variant-ligatures: no-common-ligatures" class=""> rhs: </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">) -> </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">return</span><span style="font-variant-ligatures: no-common-ligatures" class=""> lhs + rhs }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">func</span><span style="font-variant-ligatures: no-common-ligatures" class=""> sum2(lhs: </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">, rhs: </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">) -> </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">return</span><span style="font-variant-ligatures: no-common-ligatures" class=""> lhs + rhs }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">func</span><span style="font-variant-ligatures: no-common-ligatures" class=""> sum3(tuple: (</span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">, </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">)) -> </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">return</span><span style="font-variant-ligatures: no-common-ligatures" class=""> tuple.0 + tuple.1 }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">func</span><span style="font-variant-ligatures: no-common-ligatures" class=""> sum4(tuple: (lhs: </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">, rhs: </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">)) -> </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">return</span><span style="font-variant-ligatures: no-common-ligatures" class=""> tuple.lhs + tuple.rhs }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 143, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">// two arguments</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">func</span><span style="font-variant-ligatures: no-common-ligatures" class=""> f1(</span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">_</span><span style="font-variant-ligatures: no-common-ligatures" class=""> closure: (</span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">, </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">) -> </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">) { closure(1, 2) }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f1</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { lhs, rhs </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> lhs + rhs }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f1</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { (lhs, rhs) </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> lhs + rhs }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f1</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { tuple </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> tuple.0 + tuple.1 }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f1</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { (tuple) </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> tuple.0 + tuple.1 }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f1</span><span style="font-variant-ligatures: no-common-ligatures" class="">(+)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f1(sum1)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f1(sum2)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f1(sum3)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f1(sum4)</span></div><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 143, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">// two arguments, with documentation names: identical</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">func</span><span style="font-variant-ligatures: no-common-ligatures" class=""> f2(</span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">_</span><span style="font-variant-ligatures: no-common-ligatures" class=""> closure: (</span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">_</span><span style="font-variant-ligatures: no-common-ligatures" class=""> a: </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">, </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">_</span><span style="font-variant-ligatures: no-common-ligatures" class=""> b: </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">) -> </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">) { closure(1, 2) }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f2</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { lhs, rhs </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> lhs + rhs }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f2</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { (lhs, rhs) </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> lhs + rhs }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f2</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { tuple </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> tuple.0 + tuple.1 }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f2</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { (tuple) </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> tuple.0 + tuple.1 }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f2</span><span style="font-variant-ligatures: no-common-ligatures" class="">(+)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f2(sum1)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f2(sum2)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f2(sum3)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f2(sum4)</span></div><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 143, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">// one tuple argument</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">func</span><span style="font-variant-ligatures: no-common-ligatures" class=""> f3(</span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">_</span><span style="font-variant-ligatures: no-common-ligatures" class=""> closure: ((</span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">, </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">)) -> </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">) { closure((1, 2)) }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f3</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { lhs, rhs </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> lhs + rhs }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f3</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { (lhs, rhs) </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> lhs + rhs }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f3</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { tuple </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> tuple.0 + tuple.1 }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f3</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { (tuple) </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> tuple.0 + tuple.1 }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f3</span><span style="font-variant-ligatures: no-common-ligatures" class="">(+)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f3(sum1)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f3(sum2)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f3(sum3)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f3(sum4)</span></div><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 143, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures" class="">// one keyed tuple argument</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">func</span><span style="font-variant-ligatures: no-common-ligatures" class=""> f4(</span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">_</span><span style="font-variant-ligatures: no-common-ligatures" class=""> closure: ((a: </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">, b: </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">)) -> </span><span style="font-variant-ligatures: no-common-ligatures; color: #3c59a7" class="">Int</span><span style="font-variant-ligatures: no-common-ligatures" class="">) { closure((a: 1, b: 2)) }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f4</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { lhs, rhs </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> lhs + rhs }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f4</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { (lhs, rhs) </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> lhs + rhs }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f4</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { tuple </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> tuple.a + tuple.b }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f4</span><span style="font-variant-ligatures: no-common-ligatures" class=""> { (tuple) </span><span style="font-variant-ligatures: no-common-ligatures; color: #8135a0" class="">in</span><span style="font-variant-ligatures: no-common-ligatures" class=""> tuple.a + tuple.b }</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #20809f" class="">f4</span><span style="font-variant-ligatures: no-common-ligatures" class="">(+)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f4(sum1)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f4(sum2)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f4(sum3)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> f4(sum4)</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></div>Gwendal<div class=""><br class=""></div></body></html>