Location of minimum in Julia
<p>Does Julia have a build in command to find the index of the minimum of a vector?  R, for example, has a <code>which.min</code> command (and a <code>which.max</code>, of course).  </p>

<p>Obviously, I could write the following myself, but it would be nice not to have to.</p>

<pre><code>function whichmin( x::Vector )
  i = 1
  min_x=minimum(x)
  while( x[i] &gt; min_x ) 
    i+=1 
  end
  return i
end
</code></pre>

<p>Apologies if this has been asked before, but I couldn't find it.  Thanks!</p>