title: How to get() specific element from HashSet? Kotlin
body: <p>Assume <code>myHashSet = HashSet&lt;SomeClass&gt;</code></p>
  <p>where <code>SomeClass.hashcode() = someField.hashcode()</code></p>
  <p>How can I return an element with the specified hashcode, i.e:</p>
  <pre><code>myHashSet.getElementWithHashCode((other as SomeClass).someField.hashcode())
  </code></pre>
  <p><code>other</code> and the objects inside the <code>HashSet</code> are different objects with different property values except <code>someField</code> value. In other words, these two different type of objects have a common field that might have the same value.</p>
  <p>It is weird that there is no such function in HashSet. No one needed that before? What is the quickest way around?</p>