Skip to main content
Question

Remove Duplicate rom List of String Variable

  • September 11, 2023
  • 1 reply
  • 554 views

Forum|alt.badge.img+4

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.

 

1 reply

rbkadiyam
Premier Pathfinder | Tier 7
Forum|alt.badge.img+17
  • Premier Pathfinder | Tier 7
  • September 11, 2023