indexOfMin

fun <T : Comparable<T>> indexOfMin(arr: Array<T>): Int

Find the index of the minimal element of an array.

Return

the index of the first minimal element in the array.

Parameters

arr

an array of any Comparable type.