comparing numeric tables
Posted: Sun Jan 31, 2010 1:22 pm
So.. basically I want to do this:
A function that takes 2 or more tables and "subtracts" table 2+ from table 1. So the return value would be a table with only those values that are unique to table 1.
The easiest way I can think of would be to loop through table 1 and add all those values to my return value that cannot be found in the other tables. But how do I make it so it accepts a varying amount of tables? Is there a way to do that?
A function that takes 2 or more tables and "subtracts" table 2+ from table 1. So the return value would be a table with only those values that are unique to table 1.
The easiest way I can think of would be to loop through table 1 and add all those values to my return value that cannot be found in the other tables. But how do I make it so it accepts a varying amount of tables? Is there a way to do that?