id="comment-union-6019238c5749a92e1ba330976a8b42f4"><p>Returns a new set with the elements of both this and the given set.</p>
<p>In the following example, the <code>attendeesAndVisitors</code> set is made up
of the elements of the <code>attendees</code> and <code>visitors</code> sets:</p>
<pre><code class="language-swift">let attendees: Set = [&quot;Alicia&quot;, &quot;Bethany&quot;, &quot;Diana&quot;]
let visitors = [&quot;Marcia&quot;, &quot;Nathaniel&quot;]
let attendeesAndVisitors = attendees.union(vis