title: Find an object in array?
body: <p>Does Swift have something like <a href="http://underscorejs.org/#findWhere">_.findWhere</a> in Underscore.js?</p>
  
  <p>I have an array of structs of type <code>T</code> and would like to check if array contains a struct object whose <code>name</code> property is equal to <code>Foo</code>.</p>
  
  <p>Tried to use <code>find()</code> and <code>filter()</code> but they only work with primitive types, e.g. <code>String</code> or <code>Int</code>. Throws an error about not conforming to <code>Equitable</code> protocol or something like that.</p>