in reply to Re: index of the minimum element of the array
in thread index of the minimum element of the array

or List::MoreUtils ...

(see Re: index of the minimum element of the array)

BTW: still not efficient and "Ruby" ne "JS".

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re^2: index of the minimum element of the array