Eliminate duplicate words from string
If I have a string of words, such as:
sWords = "person person woman man camera TV TV person man man"
What is an efficient way to remove duplicate words? The variable sWords should contain "person woman man camera TV".
Thanks!
|