index Of First
inline fun BooleanArray.indexOfFirst(predicate: (Boolean) -> Boolean): Int
Content copied to clipboard
Returns index of the first element matching the given predicate, or -1 if the array does not contain such element.
Returns index of the first element matching the given predicate, or -1 if the collection does not contain such element.
Returns index of the first element matching the given predicate, or -1 if the list does not contain such element.
Returns index of the first element matching the given predicate, or -1 if the array does not contain such element.
Since Kotlin
1.3