title: Is there a better way to find the location of a minimum element in an Array?
body: <p>Right now I have</p>
  
  <pre><code>def min(array,starting,ending)
    minimum = starting
    for i in starting+1 ..ending
      if array[i]&lt;array[minimum]
        minimum = i
      end    
    end
  
  return minimum
  end
  </code></pre>
  
  <p>Is there a better "implementation" in Ruby? This one still looks c-ish.
  Thanks.</p>