If you don't like the classical way of a for loop checking the min and memorizing the last index you can try combining min with first_index. (note that's inefficient)
HTH! =)
Or do you want a sub minindex ?
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: index of the minimum element of the array
by LanX
in thread index of the minimum element of the array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |