|
@@ -112,7 +112,7 @@
|
|
|
<p>An item can be added to a map simply settings a key/value:</p>
|
|
|
<pre><code class="swift">
|
|
|
var people = ["Mark":1, "Andrew":2, "Paul":3, "Ross":4];
|
|
|
- map["Kiara"] = 5; // map now contains the "Kiara" key with value 5
|
|
|
+ people["Kiara"] = 5; // people now contains the "Kiara" key with value 5
|
|
|
</code></pre>
|
|
|
|
|
|
<h4 class="section-h4">Removing elements</h4>
|