Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec distinct s = seq {
- let first = Seq.nth 0 s
- let newSeq = Seq.filter (fun x -> x <> first) s
- yield first
- yield! distinct newSeq
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement