I have two lists: list1
and list2
. I want to join the lists in a way that the values in list1
should not be affected, even if it contains duplicate values. However, when appending values from list2
the duplicate values should not be removed.
I had tried Union
, which will distinct all the values and eliminate my repeated values in list1
.
For example
list1 = [a, b, c, c, d, e]
list2 = [a,c,f,g]
my required solution
list3=[a, b, c, c, d, e, f, g]