I have a list of header values from an excel spreadsheet that is set up to look like a flat table. I also have a list defining the key fields of the table that the excel sheet will be inserted to. I basically want to iterate through the list of header fields, and the header exists in the list of key fields, add it to a map of some sort. What’s the best way to check if the values in one list exist in another?
Share
I believe turning your list of keys into a
Setobject will give you the functionality you’re looking for.