Delete duplicates in collection

Hello friends,
@rkelchuri, @Ninett_Panfir, @Rammohan91, @balupad14, @Florent_Salendres, @vvaidya, @Palaniyappan, @ClaytonM, @vvaidya

how is it possible to delete duplicates in a collection?
Thank you,
cami

4 Likes

Hi cami
Yah of course
we can do like listvariablename.Distinct().ToList()
will give us distinct values alone
and it worked as well @CamiCat
if we pass in loop mention without .ToList()

Cheers @CamiCat

11 Likes

Hi @CamiCat

Yes. It is possible to delete duplicates from a collection list.

List name.Distinct().ToList() will give you the distinct values of the list

3 Likes

Hi @CamiCat

Use like this

in assign list int<32> Intarray=intarray.Distinct().ToList()

print the item

Thanks
Ashwin S

1 Like

did that work buddy @CamiCat
Cheers

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.