swift 3 filter multiple "not equals to" conditions
<p>In Swift 3 I am filtering and creating an array as so (while iterating through an existing array) :</p>

<pre><code>self.uniqueAddresses = self.uniqueAddresses.filter { $0.lat != thisUniqueAddress.lat) &amp;&amp; $0.lng != thisUniqueAddress.lng }
</code></pre>

<p>I want to exclude from my new array only those existing objects that match BOTH conditions. That means if an object's lat is like mine AND its lng is ALSO like mine THEN I don't want it in my new array. However if one of them matches it's no problem and it may be included. I'm using the &amp;&amp; operator to give me both conditions together, however even if only one of the conditions is true it also matches my conditions, and hence is not being included in my new array which is not what I want. I've tried grouping them together with parentheses but I'm getting the same results.  </p>