indexOf

open override fun indexOf(element: T): Int(source)

Returns the first index whose element equals element, or -1 when no match exists.

Searches from index zero and stops at the first match, using generic element equality.

Return

the first matching index, or -1.

Parameters

element

value to search for.