Exclude elements of Array based on index (Julia) : <p>What is the most natural way to filter an array by index in Julia? The simplest example would be to leave off the kth element:</p>

<pre><code>A = [1,2,3,4,5,6,7,8]
k = 4

[getindex(A, i) for i = 1:8 if i != k]
</code></pre>

<p>The above works but seems verbose compared to the simple <code>A[-k]</code> available in <code>R</code>. What's the cleanest way to perform this simple task?</p>
