(no subject)

I understand swift is open source. However, i can't seem to find the complete source code in GitHub. For example, RandomAccessCollection protocol has a property count default implementation but upon looking through the source provided in GitHub:swift/RandomAccessCollection.swift at main · apple/swift · GitHub

the implementation of the count property is not provided. This is just one of the many examples where code provided to us in GitHub is incomplete. Where do we get the complete source for RandomAccessCollection protocol as an example? Thanks.

The source code on GitHub _is_ full and complete.

Check out https://github.com/apple/swift/blob/master/stdlib/public/core/Collection.swift#L1336-L1338 for the implementation of `count`. RandomAccessCollection inherits from BidirectionalCollection, which inherits from Collection.

Best,
Austin

···

On Mar 12, 2017, at 10:45 PM, Don Giovanni via swift-users <swift-users@swift.org> wrote:

I understand swift is open source. However, i can't seem to find the complete source code in GitHub. For example, RandomAccessCollection protocol has a property count default implementation but upon looking through the source provided in GitHub:https://github.com/apple/swift/blob/master/stdlib/public/core/RandomAccessCollection.swift
the implementation of the count property is not provided. This is just one of the many examples where code provided to us in GitHub is incomplete. Where do we get the complete source for RandomAccessCollection protocol as an example? Thanks.

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users