Swift - Find duplicates Elements in a List
<p>i have the following list of UITextField:</p>

<pre><code>let list = [(name1TextField, phone1TextField), (name2TextField, phone2TextField), (name3TextField, phone3TextField), (name4TextField, phone4TextField), (name5TextField, phone5TextField)]
</code></pre>

<p>i'm trying to find phones duplicates and print them out</p>

<p><strong>EDIT</strong></p>

<p>e.g. (tuples could be empty)</p>

<pre><code>list = [("john", "555-444-333"), ("james", "555-444-333"), ("",""), ("bob", "333-222-111"), ("nancy", "222-111-444"), ]

output 555-444-333
</code></pre>

<p>how can i do?</p>