title: Why is it bad to use an iteration variable in a lambda expression
body: <p>I was just writing some quick code and noticed this complier error </p>
  
  <blockquote>
    <p>Using the iteration variable in a lambda expression may have unexpected results.<br>
    Instead, create a local variable within the loop and assign it the value of the iteration variable.</p>
  </blockquote>
  
  <p>I know what it means and I can easily fix it, not a big deal.<br>
  But I was wondering why it is a bad idea to use a iteration variable  in a lambda?<br>
  What problems can I cause later on?</p>