<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The source code on GitHub _is_ full and complete.<div class=""><br class=""></div><div class="">Check out&nbsp;<a href="https://github.com/apple/swift/blob/master/stdlib/public/core/Collection.swift#L1336-L1338" class="">https://github.com/apple/swift/blob/master/stdlib/public/core/Collection.swift#L1336-L1338</a>&nbsp;for the implementation of `count`. RandomAccessCollection inherits from BidirectionalCollection, which inherits from Collection.</div><div class=""><br class=""></div><div class="">Best,</div><div class="">Austin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 12, 2017, at 10:45 PM, Don Giovanni via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">

<div dir="auto" class=""><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-text-size-adjust: auto;" class="">
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:<a href="https://github.com/apple/swift/blob/master/stdlib/public/core/RandomAccessCollection.swift" rel="nofollow noreferrer" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 89, 153); text-decoration: none; cursor: pointer;" class="">https://github.com/apple/swift/blob/master/stdlib/public/core/RandomAccessCollection.swift</a></p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; -webkit-text-size-adjust: auto;" class="">
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.</p>
<div class=""></div>
</div>

_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></div></body></html>