<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]) -> (even:[Int], odd:[Int]) = { numbers -> ([Int], [Int]) in </div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr"> var evenNumberArray = [Int]()</div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr"> 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"> for number in numbers {</div><div id="yui_3_16_0_ym19_1_1481931868851_2839" dir="ltr"> number % 2 == 0 ? evenNumberArray.append(number) : oddNumberArray.append(number)</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"> 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]) -> ([Int], [Int]) = { (numbers) -> (even:[Int], odd:[Int]) in </div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3468"> var evenNumberArray = [Int]()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3469"> 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"> for number in numbers {</div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3473"> number % 2 == 0 ? evenNumberArray.append(number) : oddNumberArray.append(number)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3474"> }</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"> return (evenNumberArray, oddNumberArray)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1481931868851_3478">}</div></div></body></html>