Advertisement
Guest User

Untitled

a guest
Sep 25th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.29 KB | None | 0 0
  1. let matches = seq { for line in (File.ReadLines(@"L:/foo.txt")) -> r.Matches(line) }
  2. let extract (matches : seq<MatchCollection>) =
  3.     seq {
  4.         for ms in matches do
  5.             for m in ms -> m.Value.TrimEnd([|'<'|])
  6.      }
  7.      |> Seq.map (fun x -> x, "") |> dict |> Seq.map (fun x -> x.Key)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement