<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=""><div class="">I’ve looked around <<a href="https://github.com/apple/swift/tree/master/stdlib/public/core" class="">https://github.com/apple/swift/tree/master/stdlib/public/core</a>> and read through the various Sequence and Collection definition files. AIUI, you don’t have to define both versions of Collection.subscript; the system will automatically define the missing one in terms of the other. But the source files I read don’t have a default implementation for either version of subscript. Where is that code located?</div><br class=""><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>