Re: [swift-users] Comprehensive documentation for Collection?

2017-12-15 Thread Kyle Murray via swift-users
Meant to respond to the list with this reply: The Index associated type used to show up on developer.apple.com. The way it’s declared changed between Swift 3.x and Swift 4.0 such that it doesn’t appear anymore. (It’s declared as part of _IndexableBase, where the underscore indicates that the

Re: [swift-users] Comprehensive documentation for Collection?

2017-12-15 Thread Howard Lovatt via swift-users
It’s a problem with Apple documentation. swiftdoc.org does list the associated types, but is no longer maintained :(. -- Howard. > On 16 Dec 2017, at 1:17 pm, Nevin Brackett-Rozinsky via swift-users > wrote: > > In Xcode if I write, > > extension Collection { >

[swift-users] Comprehensive documentation for Collection?

2017-12-15 Thread Nevin Brackett-Rozinsky via swift-users
In Xcode if I write, extension Collection { var secondIndex: Index { return index(after: startIndex) } } and then option-click on “Index”, it shows “associatedtype Index : Comparable” followed by a description. Is this documented somewhere? When I look at the documentation for Collection