title: Julia's Negative/Complement Indexing like R
body: <p>Is there a functionality in Julia that's similar to R's negative indexing? In R, the code would be similar to:</p>
  
  <pre><code>x = 1:10
  inds = c(1, 5, 7)
  x[-inds]
  
  [1]  2  3  4  6  8  9 10
  </code></pre>
  
  <p>I've found this to be extremely useful in numerous situations, especially for things such as sampling indices to create a testing/training set, but also for subindexing an array to exclude certain rows. So I am hoping there's something simple in Julia that can do the same.</p>