I have a simple problem that I'm having trouble thinking around:
var oldValues : Array = [ 4, 5, 6 ];
var newValues : Array = [ 3, 4, 6, 7 ];
- I want to get the values from newValues that aren't in oldValues - 3, 7
- I want to get the values from oldValues that aren't in newValues - 5
- A way of getting both sets of values together would be nice as well - 3, 5, 7
I can only think of convoluted for each...in nests that do a lot of redundant checking. Cany someone suggest something more clear? Thanks.