title: How can I obtain the complement of list of indexes in Julia?
body: <p>Suppose that I have a variable <code>i = [1,3,5]</code>, 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 &quot;complement&quot; indexes. I mean, I want to obtain <code>ic = [2,4,6,7,8,9,10]</code>.</p>
  <p>Is there a clean and short way of obtaining this complement list of indexes?</p>
  <p>I mean, I can do this with a regular loop, but is there a way of doing this with list comprehension?</p>