Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- printfn "%d" (System.IO.File.ReadAllText("CSVnumbers.csv")
- |> (new System.Text.RegularExpressions.Regex(@"((?<=,)(.+)(?=\n|\r\n|\r|\z))")).Matches
- |> Seq.cast<System.Text.RegularExpressions.Match>
- |> Seq.sumBy(fun x -> int x.Value))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement