Skip to main content

Hi all,

I have a list of data type string and would like to ask is there a logic that can remove duplicate entries but keeping only one entry within the list?

The order does not matter

List
Apple
Boy
Apple
Cat
Dog

I wish to keep only 1 instance of Apple in this case.

 

Could not figure out exactly how to use the loop and a iterator to do so.

Any help appreciated.

 

Reply