[swift-dev] Where is Collection defined?
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?
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-dev