<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="">On Jan 27, 2016, at 11:32 AM, Jarod Long &lt;<a href="mailto:swift@lng.la" class="">swift@lng.la</a>&gt; wrote:</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=""><div class="">But failure in this case is a function that takes two arguments, and failureStubs is an array of tuples that map to that function's arguments. How do the tuple values get mapped to the arguments if not via tuple splatting?</div></div></div></blockquote><div><br class=""></div><div>Ah ok, I was looking at the success case I guess. &nbsp;You’re right. &nbsp;In this case, instead of :</div><div><br class=""></div><div>&nbsp; &nbsp; failure(failureStubs.removeFirst())<br class=""><br class=""></div><div>you’d have to write something like this:</div><div><br class=""></div><div>&nbsp; &nbsp; let tmp = failureStubs.removeFirst()</div><div>&nbsp; &nbsp; failure(tmp.0, tmp.1)<br class=""></div><div><br class=""></div><div>-Chris</div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Jarod</div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 27, 2016, at 11:28, Chris Lattner &lt;<a href="mailto:clattner@apple.com" class="">clattner@apple.com</a>&gt; wrote:</div><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="">On Jan 27, 2016, at 11:24 AM, <a href="mailto:swift@lng.la" class="">swift@lng.la</a> wrote:</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=""><div class="">Apologies -- I just realized I chose a bad example that isn't actually using the feature, but the usage would be here:</div><div class=""><br class=""></div><div class=""><div class="" style="font-family: Menlo; color: rgb(79, 129, 135); margin: 0px; font-size: 11px; line-height: normal;"><span class="" style="color: rgb(187, 44, 162);">if</span><span class="" style="">&nbsp;</span>successStubs<span class="" style="">.</span><span class="" style="color: rgb(112, 61, 170);">count</span><span class="" style="">&nbsp;&gt;&nbsp;</span><span class="" style="color: rgb(39, 42, 216);">0</span><span class="" style="">&nbsp;{</span></div><div class="" style="font-family: Menlo; color: rgb(59, 59, 59); margin: 0px; font-size: 11px; line-height: normal;">&nbsp; &nbsp; success(<span class="" style="color: rgb(79, 129, 135);">successStubs</span>.<span class="" style="color: rgb(61, 29, 129);">removeFirst</span>())</div><div class="" style="font-family: Menlo; color: rgb(59, 59, 59); margin: 0px; font-size: 11px; line-height: normal;">}</div><div class="" style="font-family: Menlo; color: rgb(79, 129, 135); margin: 0px; font-size: 11px; line-height: normal;"><span class="" style="color: rgb(187, 44, 162);">else</span><span class="" style="">&nbsp;</span><span class="" style="color: rgb(187, 44, 162);">if</span><span class="" style="">&nbsp;</span>failureStubs<span class="" style="">.</span><span class="" style="color: rgb(112, 61, 170);">count</span><span class="" style="">&nbsp;&gt;&nbsp;</span><span class="" style="color: rgb(39, 42, 216);">0</span><span class="" style="">&nbsp;{</span></div><div class="" style="font-family: Menlo; color: rgb(59, 59, 59); margin: 0px; font-size: 11px; line-height: normal;">&nbsp; &nbsp; failure(<span class="" style="color: rgb(79, 129, 135);">failureStubs</span>.<span class="" style="color: rgb(61, 29, 129);">removeFirst</span>())</div><div class="" style="font-family: Menlo; color: rgb(59, 59, 59); margin: 0px; font-size: 11px; line-height: normal;">}</div></div></div></div></blockquote><div class=""><br class=""></div><div class="">This isn’t using the feature either. &nbsp;You are passing a single value (returned by removeFirst) as a single argument. &nbsp;No spat is happening.</div></div><br class=""><div class="">-Chris</div></div></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></body></html>