indexOf

abstract fun indexOf(element: T): Int(source)

Returns the index of the first element equal to element.

Return

the first matching index, or -1 when no match exists.

Parameters

element

value to search for.