findIndex

fun IntArray.findIndex(element: Int): Int(source)

If the array is empty, -1 is returned.

Return

the index of the first occurrence for the element

Parameters

element

the element to search for