title: How do I select every 6th element from a list (using Linq)
body: <p>I've got a list of 'double' values. I need to select every 6th record. It's a list of coordinates, where I need to get the minimum and maximum value of every 6th value.</p>
  
  <p>List of coordinates (sample): <code>[2.1, 4.3, 1.0, 7.1, 10.6, 39.23, 0.5, ... ]</code>
  with hundrets of coordinates.</p>
  
  <p>Result should look like: <code>[x_min, y_min, z_min, x_max, y_max, z_max]</code>
  with exactly 6 coordinates.</p>
  
  <p>Following code works, but it takes to long to iterate over all coordinates. I'd like to use Linq instead (maybe faster?)</p>
  
  <pre><code>for (int i = 0; i &lt; 6; i++)
  {
      List&lt;double&gt; coordinateRange = new List&lt;double&gt;();
  
      for (int j = i; j &lt; allCoordinates.Count(); j = j + 6)
          coordinateRange.Add(allCoordinates[j]);
  
      if (i &lt; 3) boundingBox.Add(coordinateRange.Min());
      else boundingBox.Add(coordinateRange.Max());
  }
  </code></pre>
  
  <p>Any suggestions?
  Many thanks! Greets!</p>