When I set an array k = [3,5,6,0,1,4,5,6,9,1]

And I used the k.max can know the max value is 9

How do I get the number "8" (as k[8] = 9)??



Thanks,

-- 
Posted via http://www.ruby-forum.com/.