Suppose that I have a variable i = [1,3,5], which was obtained when I applied a filter to an array. Now, suppose that this array has 10 elements, and I'd like to obtain the "complement" indexes. I mean, I want to obtain ic = [2,4,6,7,8,9,10].
Is there a clean and short way of obtaining this complement list of indexes?
I mean, I can do this with a regular loop, but is there a way of doing this with list comprehension?