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@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to