indexOfFirst
inline fun ByteArray.indexOfFirst(
predicate: (Byte) -> Boolean
): Intinline fun ShortArray.indexOfFirst(
predicate: (Short) -> Boolean
): Intinline fun IntArray.indexOfFirst(
predicate: (Int) -> Boolean
): Intinline fun LongArray.indexOfFirst(
predicate: (Long) -> Boolean
): Intinline fun FloatArray.indexOfFirst(
predicate: (Float) -> Boolean
): Intinline fun DoubleArray.indexOfFirst(
predicate: (Double) -> Boolean
): Intinline fun BooleanArray.indexOfFirst(
predicate: (Boolean) -> Boolean
): Intinline fun CharArray.indexOfFirst(
predicate: (Char) -> Boolean
): Int@ExperimentalUnsignedTypes inline fun ULongArray.indexOfFirst(
predicate: (ULong) -> Boolean
): Int@ExperimentalUnsignedTypes inline fun UByteArray.indexOfFirst(
predicate: (UByte) -> Boolean
): Int@ExperimentalUnsignedTypes inline fun UShortArray.indexOfFirst(
predicate: (UShort) -> Boolean
): IntReturns index of the first element matching the given predicate, or -1 if the array does not contain such element.