Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. printfn "%d" (System.IO.File.ReadAllText("CSVnumbers.csv")
  2. |> (new System.Text.RegularExpressions.Regex(@"((?<=,)(.+)(?=\n|\r\n|\r|\z))")).Matches
  3. |> Seq.cast<System.Text.RegularExpressions.Match>
  4. |> Seq.sumBy(fun x -> int x.Value))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement