How to find the index inside an array which contains min value?

… something like that…otherwise you have to write your own ‘lowest non zero index’ function.