title: Java 8 stream Map<K,V> to List<T>
body: <p>Given that I have some function that takes two parameters  and returns one value , is it possible to convert a Map to a List in a Stream as a non-terminal operation?
  The nearest I cam find is to use forEach on the map to create  instances and add them to a pre-defined List, then start a new Stream from that List. Or did I just miss something?</p>
  
  <p>Eg: The classic "find the 3 most frequently occurring words in some long list of words" </p>
  
  <pre><code>wordList.stream().collect(groupingBy(Function.identity, Collectors.counting))).
  </code></pre>
  
  <p>(now I want to stream the entrySetof that map)</p>
  
  <pre><code>sorted((a,b) -&gt; a.getValue().compareTo(b.getValue))).limit(3).forEach(print...
  </code></pre>