<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=""><div class="">I posted a revision (2) of the entity duplication <<a href="https://gist.github.com/CTMacUser/44afa75e379ec70201391af3a39bcdeb" class="">https://gist.github.com/CTMacUser/44afa75e379ec70201391af3a39bcdeb</a>>. I added the ability to use the index placeholder as a closure anonymous argument, i.e. parameterize “$0,” “$1,” etc. with “$($$0).” I thought a direct triple-dollar-sign would be confusing, from determining which order the “$” and “$$” bind (or if it’s yet another new token).</div><div class=""><br class=""></div><div class="">I don’t think anyone has looked at this yet. I do want it for Swift 5, if possible. It’s the dual to variadic parameters/arguments; for producing comma-separated lists (instead of consuming), but can be used for non-variadic stuff too. “constexpr” would help, but it’s not necessary. It would complement variadic generics, if added.</div><div class=""><br class=""></div><div class="">I want to know if the grammar scheme (the one in the “Grammar” section, not the troll version a few paragraphs before) is the good approach. And if the idea is even feasible to implement.</div><div class=""><br class=""></div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">— </div><div class="">Daryle Walker<br class="">Mac, Internet, and Video Game Junkie<br class="">darylew AT mac DOT com </div></div>
</div>
<br class=""></body></html>