Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. let assetsMap =
  2. assetInfo.Rows
  3. |> Seq.filter (fun (rw: AssetsInfo.Row) -> Set.contains rw.Ticker assetsTickerSet)
  4. |> List.ofSeq
  5. |> List.map (fun rw -> rw.Ticker, Asset.constructor rw) // Frame.ReadCSV called here
  6. |> Map.ofSeq
  7.  
  8. type AssetsInfo = FSharp.Data.CsvProvider<...>
  9.  
  10. System.InvalidOperationException: tried to skip The input sequence has an insufficient number of elements. 1 past the end of the seq
  11. at Microsoft.FSharp.Collections.SeqModule.Skip@1316.GenerateNext(IEnumerable`1& next)
  12. at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
  13. at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.System-Collections-IEnumerator-MoveNext()
  14. at FSharp.Data.Runtime.CsvHelpers.parseIntoTypedRows@176.GenerateNext(IEnumerable`1& next) in C:GitFSharp.DatasrcCsvCsvRuntime.fs:line 176
  15. at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
  16. at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.System-Collections-IEnumerator-MoveNext()
  17. at Microsoft.FSharp.Collections.Internal.IEnumerator.next@187[T](FSharpFunc`2 f, IEnumerator`1 e, FSharpRef`1 started, Unit unitVar0)
  18. at Microsoft.FSharp.Collections.Internal.IEnumerator.filter@182.System-Collections-IEnumerator-MoveNext()
  19. at Microsoft.FSharp.Collections.SeqModule.ToList[T](IEnumerable`1 source)
  20. at <StartupCode$FSI_0035>.$FSI_0035.main@() in H:DropboxBitBucketVSProjectsFractal10Fractal10Program.fs:line 139
  21. Stopped due to error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement