- <p>You can access an element from a list by calling the subscript operator [] on it with the index of the element you want. Like most languages, indexes start at zero:
+ <p>You can access an element from a list by calling the subscript operator [] on it with the index of the element you want. Like most languages, indices start at zero:
</p>
</p>
<pre><code class="swift">
<pre><code class="swift">
var names = ["Mark", "Andrew", "Paul", "Ross", "Frank", "Max"];
var names = ["Mark", "Andrew", "Paul", "Ross", "Frank", "Max"];
- <p>You can access an element from a list by calling the subscript operator [] on it with the index of the element you want. Like most languages, indexes start at zero:</p>
+ <p>You can access an element from a list by calling the subscript operator [] on it with the index of the element you want. Like most languages, indices start at zero:</p>