indexOf
@DeprecatedSinceKotlin
(
"1.4"
,
"1.6"
,
"1.7"
)
fun
FloatArray
.
indexOf
(
element
:
Float
)
:
Int
(source)
@DeprecatedSinceKotlin
(
"1.4"
,
"1.6"
,
"1.7"
)
fun
DoubleArray
.
indexOf
(
element
:
Double
)
:
Int
(source)
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.