title: Java stream filter items of specific index
body: <p>I'm looking for a concise way to filter out items in a List at a particular index. My example input looks like this:</p>
  
  <pre><code>List&lt;Double&gt; originalList = Arrays.asList(0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0);
  List&lt;Integer&gt; filterIndexes = Arrays.asList(2, 4, 6, 8);
  </code></pre>
  
  <p>I want to filter out items at index <code>2</code>, <code>4</code>, <code>6</code>, <code>8</code>. I have a for loop that skips items that match the index but I was hoping there would be an easy way of doing it using streams. The final result would look like that:</p>
  
  <pre><code>List&lt;Double&gt; filteredList = Arrays.asList(0.0, 1.0, 3.0, 5.0, 7.0, 9.0, 10.0);
  </code></pre>