title: Java8 sum up to a limit with streams
body: <p>I have this LinkedHashMap:</p>
  
  <pre><code>myMap = {
    0 =&gt; 10,
    1 =&gt; 6,
    2 =&gt; 28,
    ...
  }
  int limit = 15;
  </code></pre>
  
  <p>What I'd want to do using streams is to sum (in order) the map values, and stop when the limit is reached, and return back the correspective index in the map (in this case 0).
  Is there an elegant way with streams?</p>