I think it would be correct to keep looping over all indices - after all, it's just the values that has changed, not which indices that doesn't have the default value.
Thus, foreach ((<1,2,3>);int i;int v) ... would give i:v 1:1, 2:1, 3:1, and foreach (~(<1,2,3>);int i;int v) ... would give 1:0, 2:0, 3:0.
/ Mirar
Previous text:
2003-02-06 14:42: Subject: Xor
Who's to say? :-) The order of the set is not defined, is it?
/ Per Hedbor ()