list1 = [1, 3, 5, 7]
list2 = [[1, "name1", "sys1"], [2, "name2", "sys2"], [3, "name3", "sys3"], [4, "name4", "sys4"]]
I've got the following 2 lists, I would like to be able to retrieve from list2 every item that matched in list1.
so, the result would be like:
result = [[1, "name1", "sys1"], [3, "name3", "sys3"]]
Separately is there also an easy way to find out the items that did not match,
notmatch = [5, 7]
I have read this Find intersection of two lists? but it does not produce the result I need.