title: Filter hash by key and increase corresponding values
body: <p>I have a hash: <code>date =&gt; integer</code>. I need to change the values, but only for keys, satisfying the requirement: <code>date1 &lt; key &lt; date2</code>. What is an elegant way to do it?</p>