an class="nf">isContentEqual</span><span class="p">(</span><span class="n">to</span> <span class="nv">source</span><span class="p">:</span> <span class="kt">User</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span> <span class="p">{</span>
        <span class="k">return</span> <span class="n">name</span> <span class="o">==</span> <span class="n">source</span><span class="o">.</span><span class="n">name</span>
    <span class="p">}</span>
<span class="p">}</span>
</code></