[Gambas-user] Get distinct array from large array

Fabien Bodard gambas.fr at gmail.com
Fri Dec 10 11:54:57 CET 2021


>   Public Function Deduplicate(xxx As String[]) As String[]
>     Dim stash As New Collection
>
>     For Each x As String in xxx
>       stash[x] = True
>     Next
>     Return stash.Keys
>   End
>

Only if string is compatible with collection key naming .


More information about the User mailing list