indexOf

Common
1.0
open fun indexOf(element: @UnsafeVariance E): Int
JS
Native
1.1
open fun indexOf(element: E): Int

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.