title: how to access the next item in the list in lambda expressions
body: <p>I am creating a simple query (if this is even the term of using LINQ) that takes each number in the list, added is to the index, and then from the new list I want to divide the value with the highest index with the value that has the highest index - 1 and then do that same action on all the indexes in the pairs (index val, index val-1) so the result will be a list half a size of the original list, and then pick the highest result from the new list.</p>
  
  <pre class="lang-cs prettyprint-override"><code> var lst = new List&lt;int&gt;() { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
  
     var fianle = lst
                 .Select((value, i) =&gt; new { i, value })
                 .Select(item =&gt;
            item.value + item.i)
               .Select((x , how to accse the previos item? ) =&gt; x/previositem)
              .Max(x =&gt; x);
  </code></pre>
  
  <p>so i want to know </p>
  
  <ol>
  <li>how to loop backward using lambda expressions </li>
  <li>how to access the previous item in the list using lambda expressions</li>
  </ol>
  
  <p>thank you in advance! </p>