[swift-dev] Where is Collection defined?

Daryle Walker darylew at mac.com
Sun Jan 7 17:07:36 CST 2018

I’ve looked around <https://github.com/apple/swift/tree/master/stdlib/public/core> 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?

Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20180107/24316fef/attachment.html>

More information about the swift-dev mailing list