title: IEnumerable with Yield statement
body: <p>Consider the following code:</p>
  
  <pre><code>public static IEnumerable&lt;float&gt; Power(string ticker, float equity, float amount)
  {
      for (int k = 0; MajicNumber(ref k, amount); )
      {
          yield return CalculateStats(ticker, equity, k);
          // Can we get the value of current resultset here?
      }
  }
  </code></pre>
  
  <p>Since the function is maintaining the result-set, can we access it?</p>
  
  <p>The traditional counterpart would be:</p>
  
  <pre><code>public static IEnumerable&lt;float&gt; Power(string ticker, float equity, float amount)
  {
      List&lt;float&gt; resultSet = new List&lt;float&gt;();
      for (int k = 0; MajicNumber(ref k, amount); )
      {
          resultSet.Add(CalculateStats(ticker, equity, k));
          // resultSet is accessible here
      }
      return resultSet;
  }
  </code></pre>