Unique values

Just starting out? Need help? Post your questions and find answers here.
lesserpanda
User
User
Posts: 65
Joined: Tue Feb 11, 2020 7:50 am

Unique values

Post by lesserpanda »

Hi guys,

Is there a built in way to just get the unique values of a List of strings?
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Unique values

Post by skywalk »

Populate a map(yourstringhere) and only unique keys are retained.
Or
Populate a SQLite memory table with your strings and run a distinct query.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
lesserpanda
User
User
Posts: 65
Joined: Tue Feb 11, 2020 7:50 am

Re: Unique values

Post by lesserpanda »

Maps ... thank you
AZJIO
Addict
Addict
Posts: 1319
Joined: Sun May 14, 2017 1:48 am

Re: Unique values

Post by AZJIO »

Post Reply