Repeated Substitutions in Lists
My apologies if this is a trivial question. I have a list of people which is unsorted and can contain duplicates. I also have a list of all the different people who could appear in the list, and a corresponding list of their respective job types, all of which in this example are one of just two numbers, i.e. 1 or 2. I want to create a list of the respective job types of all the people in the original list.