title: In Ruby, what is the cleanest way of obtaining the index of the largest value in an array?
body: <p>If <code>a</code> is the array, I want <code>a.index(a.max)</code>, but something more Ruby-like.  It should be obvious, but I'm having trouble finding the answer at so and elsewhere.  Obviously, I am new to Ruby.</p>