Say I have two lists:
list1 = [A, B, C, D, E]
list2 = [A|1, C|2, D|2, F|3]
I want to compare if the entries in list1 exist in the first half of the list2 entries, and print the whole outcome from list2.
So from this I would want an outcome of:
A|1, C|2, D|2
Thanks in advance.
list1 = [A, B, C, D, E]
list2 = [A|1, C|2, D|2, F|3]
I want to compare if the entries in list1 exist in the first half of the list2 entries, and print the whole outcome from list2.
So from this I would want an outcome of:
A|1, C|2, D|2
Thanks in advance.
Comment