<div dir="ltr">Ricardo,<div><br></div><div>That'd work, but I was thinking more along the lines of:</div><li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><span class="inbox-inbox-inbox-inbox-kt" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(170,51,145);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">func</span> <span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">add</span>(<span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">numbers</span>: <span class="inbox-inbox-inbox-inbox-n" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(92,38,153);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">Double</span>...) -> <span class="inbox-inbox-inbox-inbox-n" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(92,38,153);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">Double</span> {</code></li><li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"> <span class="inbox-inbox-inbox-inbox-kt" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(170,51,145);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">var</span> <span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">total</span>: <span class="inbox-inbox-inbox-inbox-n" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(92,38,153);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">Double</span> = <span class="inbox-inbox-inbox-inbox-m" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(28,0,207);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">0</span></code></li><li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"> <span class="inbox-inbox-inbox-inbox-kt" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(170,51,145);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">for</span> <span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">number</span> <span class="inbox-inbox-inbox-inbox-kt" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(170,51,145);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">in</span> <span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">numbers</span> {</code></li><li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"> <span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">total</span> += <span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">number</span></code></li><li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"> }</code></li><li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"> <span class="inbox-inbox-inbox-inbox-kt" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(170,51,145);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">return</span> <span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">total</span></code></li><li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">}</code></li><li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><span class="inbox-inbox-inbox-inbox-kt" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(170,51,145);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">func</span> <span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">arithmeticMean</span>(<span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">numbers</span>: <span class="inbox-inbox-inbox-inbox-n" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(92,38,153);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">Double</span>...) -> <span class="inbox-inbox-inbox-inbox-n" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(92,38,153);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">Double</span> {</code></li><li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"> <span class="inbox-inbox-inbox-inbox-kt" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(170,51,145);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">return</span> <span style="color:rgb(63,110,116);font-size:11.9px;line-height:22.4px">add</span><span style="font-size:11.9px;line-height:22.4px">(</span><span class="inbox-inbox-inbox-inbox-inbox-inbox-vc" style="font-size:11.9px;line-height:22.4px;border:0px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">numbers</span><span style="font-size:11.9px;line-height:22.4px">)</span> / <span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">Double</span>(<span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">numbers</span>.<span class="inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">count</span>)</code></li><li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">}</code></li><div><br></div><div>Certainly, #splat would work, but it may be slightly more confusing to someone that hasn't seen the splat operator before:<li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><span class="inbox-inbox-inbox-inbox-inbox-inbox-kt" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(170,51,145);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">func</span> <span class="inbox-inbox-inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">arithmeticMean</span>(<span class="inbox-inbox-inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">numbers</span>: <span class="inbox-inbox-inbox-inbox-inbox-inbox-n" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(92,38,153);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">Double</span>...) -> <span class="inbox-inbox-inbox-inbox-inbox-inbox-n" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(92,38,153);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">Double</span> {</code></li><li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"> <span class="inbox-inbox-inbox-inbox-inbox-inbox-kt" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(170,51,145);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">return</span> <span style="color:rgb(63,110,116);font-size:11.9px;line-height:22.4px">add</span><span style="font-size:11.9px;line-height:22.4px">(#splat(</span><span class="inbox-inbox-inbox-inbox-inbox-inbox-inbox-inbox-vc" style="font-size:11.9px;line-height:22.4px;border:0px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">numbers</span><span style="font-size:11.9px;line-height:22.4px">))</span> / <span class="inbox-inbox-inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">Double</span>(<span class="inbox-inbox-inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">numbers</span>.<span class="inbox-inbox-inbox-inbox-inbox-inbox-vc" style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">count</span>)</code></li><li style="font-family:helvetica,arial,sans-serif;font-size:14px;line-height:22.4px;border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code class="inbox-inbox-inbox-inbox-inbox-inbox-code-voice" style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">}</code></li></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, May 20, 2016 at 11:52 AM Ricardo Parada <<a href="mailto:rparada@mac.com">rparada@mac.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><br><div><div><span style="background-color:rgba(255,255,255,0)">Hi Christopher, </span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">Do you think something like this would work if there was a #splat() magic operator like this:</span></div><span style="background-color:rgba(255,255,255,0)"><br>let values = [1, 2, 3, 4, 5]</span></div><div><span style="background-color:rgba(255,255,255,0)">let mean = arithmeticMean(#splat(values))</span></div><div><br></div><br></div></div><div dir="auto"><div><br>On May 20, 2016, at 11:19 AM, Christopher Boyd via swift-evolution <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><span style="line-height:1.5">Currently, Swift doesn't have a way to easily pass a variadic parameter to another variadic function because the variadic parameter itself has already been collected into an array.</span><br></div><div dir="ltr"><br>There was a prior posting a few weeks back about allowing arrays to be passed to a variadic parameter which would resolve this very specific issue:<br><a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160411/015185.html" target="_blank">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160411/015185.html</a><br><br>Unfortunately, that thread devolved into an argument on whether or not variadic parameters should be removed entirely.<br><br>I, certainly, see merit in having functions that can accept a variable number of arguments and variadic functions should seem intuitive to anyone else that might be reading the code.<br><br><div>Swift's documentation presents a very intuitive example:<br><ol style="border:0px;font-size:14px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;line-height:1.6em;list-style:none;font-family:helvetica,arial,sans-serif;background-image:initial;background-position:initial;background-repeat:initial"><li style="border-width:0px 0px 0px 18px;border-left-style:solid;border-left-color:transparent;margin:0px;outline:0px;padding:0px 10px 0px 0px;vertical-align:baseline;white-space:pre-wrap;list-style-type:none;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><code style="border:0px;font-size:0.85em;margin:0px;outline:0px;padding:0px;vertical-align:baseline;font-family:menlo,monospace;word-wrap:break-word;background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial"><span style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(63,110,116);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">arithmeticMean</span>(<span style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(28,0,207);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">1</span>, <span style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(28,0,207);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">2</span>, <span style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(28,0,207);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">3</span>, <span style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(28,0,207);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">4</span>, <span style="border:0px;font-size:11.9px;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:rgb(28,0,207);background-image:initial;background-color:transparent;background-position:initial;background-repeat:initial">5</span>)</code></li></ol>It's obvious what this function is doing, and any intelligent person would expect 3 as the result. Even WolframAlpha knows how to interpret this: <a href="http://www.wolframalpha.com/input/?i=arithmeticMean(1,+2,+3,+4,+5" target="_blank">http://www.wolframalpha.com/input/?i=arithmeticMean(1,+2,+3,+4,+5</a>) <br><br>Moreover, a function can only have ONE variadic parameter, which I think reduces any possible confusion.<br><br>Regardless, if variadic parameters are going to stay in Swift, then I think they should at least support chaining to another function.<br><br>The most obvious way of allowing this would be to allow variadic parameters to accept an array.<br><br>However, I think that if an array (of the parameter type) is specified for a variadic parameter, then no other values should be allowed. This eliminates any unnecessary complexity of potentially having to add values to the array.</div><div><br></div><div>- Christopher Boyd</div></div></div></div>
</div></blockquote></div><div dir="auto"><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></div></blockquote></div>