I feel the answer to this is almost within my reach but I can’t get to it.
I have a list A: 11-London, 12-Riyadh, 13-Denver, 14-Gondor
I have list B: London, London, Denver, Gondor, London, Riyadh, Gondor
I want to compare list B with list A and create a list C with corresponding number values: 11,11,13,14,11,12,14
I was able to achieve values as 0 to 3 using List.IndexOf. But I would really like to be able to match them to 11-14.