Above all, don't fear difficult moments. The best comes from them. -Rita Levi-Montalcini
In this lab, you'll get practice creating, accessing, and changing elements in an array as well as creating functions that take in arrays as arguments.
- Create
Array
variables and constants - Create an
Array
ofInt
's andString
's. - Create functions that take in
Array
's as arguments - Access elements of the
Array
using subscript syntax - Change elements at a specific index using subscript syntax
- Open up the playground file included with this repo and answer the listed questions (which you will find in the playground file) in order.
- There are no tests associated with this playground file.
- The following two screenshots are included to assist you in case the file doesn't open right to the main.swift file (which it should by default).
- Make sure you're working in the main.swift file (which you can view by pressing command + 0):
- Make sure render documentation is checked off which you can do in the Hide or show Utilities pane in the top right: