indexOf

Common
JVM
JS
Native
1.0
abstract fun indexOf(element: @UnsafeVariance E): Int
(source)

Returns the index of the first occurrence of the specified element in the list, or -1 if the specified element is not contained in the list.