The documentation for any programming language is an indispensable resource, and Swift’s is no exception.
Open the documentation that shipped with Xcode by clicking Help → Documentation and API Reference at the top (Figure 9.3).
Figure 9.3 Help menu
A new window will open. In the search bar at the top, type in “Array” and hit Return on your keyboard. This will open the documentation for Swift’s Array type, as in Figure 9.4.
Figure 9.4 Opening the documentation