title: How to find all properties and methods available for a given type?
body: <p>I'm reading through The Swift Programming Language for Swift 2.2, and I've come across some code that calls the enumerate() method on an array.  I wanted to know more about this method, so I looked it up in Swift Standard Library Reference, but there's no mention of this method on Array's page (<a href="https://developer.apple.com/library/ios/documentation/Swift/Reference/Swift_Array_Structure/" rel="nofollow">https://developer.apple.com/library/ios/documentation/Swift/Reference/Swift_Array_Structure/</a>).  I thought I'd check for any superclasses that might implement it, but Array doesn't inherit from anything.</p>
  
  <p>I searched a bit, and found that the enumerate() method is part of the  SequenceType protocol, and then I eventually realised that Array conforms to the CollectionType protocol which inherits from SequenceType so Array has to implement enumerate().</p>
  
  <p>My question is this: is there an easier way to establish exactly what properties and methods are available for a given type?  Right now I can only think of using Xcode's code completion and scanning through the available options, but it seems to me there must be a better way?</p>