Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
Function remove_duplicates(list)
|
||||
arr = Split(list,",")
|
||||
Set dict = CreateObject("Scripting.Dictionary")
|
||||
For i = 0 To UBound(arr)
|
||||
If dict.Exists(arr(i)) = False Then
|
||||
dict.Add arr(i),""
|
||||
End If
|
||||
Next
|
||||
For Each key In dict.Keys
|
||||
tmp = tmp & key & ","
|
||||
Next
|
||||
remove_duplicates = Left(tmp,Len(tmp)-1)
|
||||
End Function
|
||||
|
||||
WScript.Echo remove_duplicates("a,a,b,b,c,d,e,d,f,f,f,g,h")
|
||||
Loading…
Add table
Add a link
Reference in a new issue