@DeprecatedSinceKotlin("1.4") fun FloatArray.indexOf( element: Float ): IntDeprecated: The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'indexOfFirst { it == element }' instead to continue using this behavior, or '.asList().indexOf(element: T)' to get the same search behavior as in a list.
@DeprecatedSinceKotlin("1.4") fun DoubleArray.indexOf( element: Double ): IntDeprecated: The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'indexOfFirst { it == element }' instead to continue using this behavior, or '.asList().indexOf(element: T)' to get the same search behavior as in a list.
Returns first index of element, or -1 if the array does not contain element.
Returns first index of element, or -1 if the collection does not contain element.
Returns first index of element, or -1 if the list does not contain element.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/index-of.html