Skip to main content
Question

Remove Duplicate rom List of String Variable

  • 11 September 2023
  • 1 reply
  • 298 views

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