You are viewing a single comment's thread. Return to all comments →
let dup list= match list with |[] -> [] |head :: tail -> List.fold (fun op head -> if List.contains head op then op else head :: op )[head] tail |> List.rev let result = dup (List.ofSeq str) let op = System.String.Concat(Array.ofList(result)) printfn "%s" op
Seems like cookies are disabled on this browser, please enable them to open this website
Remove Duplicates
You are viewing a single comment's thread. Return to all comments →