indexOf

fun <T> Array<out T>.indexOf(element: T): Int (source)
fun ByteArray.indexOf(element: Byte): Int (source)
fun ShortArray.indexOf(element: Short): Int (source)
fun IntArray.indexOf(element: Int): Int (source)
fun LongArray.indexOf(element: Long): Int (source)
fun FloatArray.indexOf(element: Float): Int (source)
fun DoubleArray.indexOf(element: Double): Int (source)
fun BooleanArray.indexOf(element: Boolean): Int (source)
fun CharArray.indexOf(element: Char): Int (source)

Returns first index of element, or -1 if the array does not contain element.

fun <T> Iterable<T>.indexOf(element: T): Int (source)

Returns first index of element, or -1 if the collection does not contain element.

fun <T> List<T>.indexOf(element: T): Int (source)

Returns first index of element, or -1 if the list does not contain element.