Delete element in an array for julia
<p>I've been wandering for a while in the docs and in forums and I haven't found a built in method/function to do the simple task of deleting an element in an array. Is there such built-in function?</p>

<p>I am asking for the equivalent of python's list.remove(x).</p>

<p>Here's an example of naively picking a function from the box:</p>

<pre><code>julia&gt; a=Any["D","A","s","t"]
julia&gt; pop!(a, "s")
ERROR: MethodError: `pop!` has no method matching       
pop!(::Array{Any,1},     ::ASCIIString)
Closest candidates are:
  pop!(::Array{T,1})
  pop!(::ObjectIdDict, ::ANY, ::ANY)
  pop!(::ObjectIdDict, ::ANY)
  ...
</code></pre>

<p><a href="https://en.wikibooks.org/wiki/Introducing_Julia/Arrays_and_tuples#Creating_arrays" rel="noreferrer">Here</a> mentions to use  <code>deleteat!</code>, but also doesn't work:</p>

<pre><code>julia&gt; deleteat!(a, "s")
ERROR: MethodError: `-` has no method matching -(::Int64, ::Char)
Closest candidates are:
  -(::Int64)
  -(::Int64, ::Int64)
  -(::Real, ::Complex{T&lt;:Real})
  ...

 in deleteat! at array.jl:621
</code></pre>