For example I have this lists of numbers / id's:
[1001, 1002, 1002, 1003, 1004]
how do I merge or make 1002 only one? So it would like this:
[1001, 1002,1003, 1004]
I know this pretty basic and I've been looking for a solution in Google for a while and all I see are how to merge dicts
, which is not what I need. I just need to merge those same values.