<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 12. Oct 2017, at 01:17, Kelvin Ma via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 14px; 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=""><div class="gmail_extra">On Wed, Oct 11, 2017 at 6:06 PM, Nevin Brackett-Rozinsky&nbsp;<span dir="ltr" class="">&lt;<a href="mailto:nevin.brackettrozinsky@gmail.com" target="_blank" class="">nevin.brackettrozinsky@gmail.com</a>&gt;</span>&nbsp;wrote:<br class=""><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><span class="">On Wednesday, October 11, 2017, Kelvin Ma via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>&gt; wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr" class="">Yes, a 0-ary operator like that would have to be hard baked into the language itself.</div><div dir="ltr" class=""></div></blockquote><div class=""><br class=""></div></span><div class="">Actually, you can just make a subscript which takes a function as an argument, and call it by passing in the ellipsis operator.</div></blockquote><div class=""><br class=""></div><div class="">I mean,,, you can,,, but that’s kind of weird<br class=""></div></div></div></div></div></blockquote></div><br class=""><div class="">That's exactly how the [...] notation is implemented in the stdlib. Toni Suter wrote a great article about it:&nbsp;<a href="https://tonisuter.com/blog/2017/08/unbounded-ranges-swift-4/" class="">https://tonisuter.com/blog/2017/08/unbounded-ranges-swift-4/</a></div><div class=""><br class=""></div></body></html>