[swift-dev] Where is Collection defined?

Michael Gottesman mgottesman at apple.com
Mon Jan 8 13:11:15 CST 2018


If it is a gybed file, you need to look in the build directory. I would just do a find ./ for the file (without the gybed) extension in your build directory.

> On Jan 8, 2018, at 11:02 AM, Daryle Walker via swift-dev <swift-dev at swift.org> wrote:
> 
> 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 
> 
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev



More information about the swift-dev mailing list