title: In ruby, how do you select the first hash entry whose key is the first matching entry of an array?
body: <p>The goal is something like the following code:</p>
  
  <pre><code>h={ i:4, j:3, k:2}
  a=[ :f, :g, :j, :z, :i]
  h.get_first_matching_in(a)
  =&gt; :j
  h.select first_from(a)
  =&gt; :j
  </code></pre>
  
  <p>What should go in <code>.get_first_matching_in</code> or <code>first_from</code>?</p>