<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr">When using Closures in Swift, you declare the parameter names inside the curly brackets. How come for tuples you don't, but declare them outside? Also, why do single parameters not need parentheses? This makes Swift inconsistent, e.g.</div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr">var oneParameterAndMultipleReturn: ([Int]) -&gt; (even:[Int], odd:[Int]) = { numbers -&gt; ([Int], [Int]) in&nbsp;</div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr">&nbsp; &nbsp; var evenNumberArray = [Int]()</div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr">&nbsp; &nbsp; var oddNumberArray = [Int]()</div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr">&nbsp; &nbsp; for number in numbers {</div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; number % 2 == 0 ? evenNumberArray.append(number) : oddNumberArray.append(number)</div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr">&nbsp; &nbsp; }</div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr">&nbsp; &nbsp; return (evenNumberArray, oddNumberArray)</div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr">}</div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr">for consistency, I suggest tuple names should be in curly brackets where you also declare parameter names. Also, again for consistency and clarity, parameters in Closures should always be surrounded by parentheses, even single parameters:</div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3467">var oneParameterAndMultipleReturn: ([Int]) -&gt; ([Int], [Int]) = { (numbers) -&gt; (even:[Int], odd:[Int]) in&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3468">&nbsp; &nbsp; var evenNumberArray = [Int]()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3469">&nbsp; &nbsp; var oddNumberArray = [Int]()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3470"><br id="yui_3_16_0_ym19_1_1481931868851_3471"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3472">&nbsp; &nbsp; for number in numbers {</div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3473">&nbsp; &nbsp; &nbsp; &nbsp; number % 2 == 0 ? evenNumberArray.append(number) : oddNumberArray.append(number)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3474">&nbsp; &nbsp; }</div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3475"><br id="yui_3_16_0_ym19_1_1481931868851_3476"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3477">&nbsp; &nbsp; return (evenNumberArray, oddNumberArray)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3478">}</div></div></body></html>