title: Why does this code crash the second time it is executed in FSI?
body: <p>I have some code that generates an exception the <code>second time</code>  it is executed in FSI. The sequence is the following:</p>
  
  <p>1) Select all lines <code>above</code> it, run on <code>FSI</code> using <code>Alt+Enter</code>.</p>
  
  <p>2) Select the code, run on <code>FSI</code> using <code>Alt+Enter</code>. So far no errors.</p>
  
  <p>3) Run the selected code again by hitting <code>Alt+Enter</code>. Error (see below).</p>
  
  <p>Here are the lines of code generating this behavior:</p>
  
  <pre><code>let assetsMap =
      assetInfo.Rows
      |&gt; Seq.filter (fun (rw: AssetsInfo.Row) -&gt; Set.contains rw.Ticker assetsTickerSet)
      |&gt; List.ofSeq
      |&gt; List.map (fun rw -&gt; rw.Ticker, Asset.constructor rw) // Frame.ReadCSV called here
      |&gt; Map.ofSeq
  </code></pre>
  
  <p>Relevant info:</p>
  
  <pre><code>type AssetsInfo = FSharp.Data.CsvProvider&lt;...&gt; 
  </code></pre>
  
  <p>Error message:</p>
  
  <pre><code>System.InvalidOperationException: tried to skip The input sequence has an insufficient number of elements. 1 past the end of the seq
     at Microsoft.FSharp.Collections.SeqModule.Skip@1316.GenerateNext(IEnumerable`1&amp; next)
     at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
     at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.System-Collections-IEnumerator-MoveNext()
     at FSharp.Data.Runtime.CsvHelpers.parseIntoTypedRows@176.GenerateNext(IEnumerable`1&amp; next) in C:\Git\FSharp.Data\src\Csv\CsvRuntime.fs:line 176
     at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
     at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.System-Collections-IEnumerator-MoveNext()
     at Microsoft.FSharp.Collections.Internal.IEnumerator.next@187[T](FSharpFunc`2 f, IEnumerator`1 e, FSharpRef`1 started, Unit unitVar0)
     at Microsoft.FSharp.Collections.Internal.IEnumerator.filter@182.System-Collections-IEnumerator-MoveNext()
     at Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable`1 source)
     at &lt;StartupCode$FSI_0035&gt;.$FSI_0035.main@() in H:\Dropbox\BitBucket\VSProjects\Fractal10\Fractal10\Program.fs:line 139
  Stopped due to error
  </code></pre>
  
  <p>Any ideas on the reason for this odd behavior?</p>