My goal is to filter a certain list, based on what element is presented in an other list.
I came up with an idea, where I compare each element of the second list with all elements of the first list one by one.
Since I don’t know the length of my second list, this is clearly not the best way of doing it.
I have two questions:
- Am I going on the right direction, or is there a better way to solve it?
- If this is the way to go, what is the right code in the codeblock, so I don’t need to add an entry for all the possible elements of the second list.