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

Like this:

( haven’t even compiled that, but you get the idea… )