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
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
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
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
Hi @CamiCat
Use like this
in assign list int<32> Intarray=intarray.Distinct().ToList()
print the item
Thanks
Ashwin S
did that work buddy @CamiCat
Cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.