title: Java Streams list to map index of ocurrence as key
body: <p>Let's say I have a list of Strings </p>
  
  <pre><code>["bird", "bird", "dog", "dog", "bird","bog"]
  </code></pre>
  
  <p>And I want them to be collected as a Map in the form of</p>
  
  <pre><code>{"bird": [0, 1, 4], "dog": [2, 3, 5]}
  </code></pre>
  
  <p>being the lists values the indexes where the word is on the input list.</p>
  
  <p>Is there a way to do this with Java Streams?</p>