title: How to remove a hash item under some condition
body: <p>I have a hash like this.</p>
  
  <pre><code>h = {1 =&gt; 2, 2 =&gt; 3, 5 =&gt; 8, 4 =&gt; 2, 3 =&gt; 3}
  </code></pre>
  
  <p>I want to delete items whose key is bigger than 3 like this:</p>
  
  <pre><code>h.each{|k,v| p "delete this" if k &gt; 3}
  </code></pre>
  
  <p>How can I delete an item inside a loop? Or is there better way to delete an item with a condition?</p>