indexOfLast

Common
JVM
JS
Native
1.0
inline fun <T> Array<out T>.indexOfLast(
    predicate: (T) -> Boolean
): Int

(source)
inline fun ByteArray.indexOfLast(
    predicate: (Byte) -> Boolean
): Int

(source)
inline fun ShortArray.indexOfLast(
    predicate: (Short) -> Boolean
): Int

(source)
inline fun IntArray.indexOfLast(
    predicate: (Int) -> Boolean
): Int

(source)
inline fun LongArray.indexOfLast(
    predicate: (Long) -> Boolean
): Int

(source)
inline fun FloatArray.indexOfLast(
    predicate: (Float) -> Boolean
): Int

(source)
inline fun DoubleArray.indexOfLast(
    predicate: (Double) -> Boolean
): Int

(source)
inline fun BooleanArray.indexOfLast(
    predicate: (Boolean) -> Boolean
): Int

(source)
inline fun CharArray.indexOfLast(
    predicate: (Char) -> Boolean
): Int

(source)
@ExperimentalUnsignedTypes inline fun UIntArray.indexOfLast(
    predicate: (UInt) -> Boolean
): Int

(source)
@ExperimentalUnsignedTypes inline fun ULongArray.indexOfLast(
    predicate: (ULong) -> Boolean
): Int

(source)
@ExperimentalUnsignedTypes inline fun UByteArray.indexOfLast(
    predicate: (UByte) -> Boolean
): Int

(source)
@ExperimentalUnsignedTypes inline fun UShortArray.indexOfLast(
    predicate: (UShort) -> Boolean
): Int

(source)

Returns index of the last element matching the given predicate, or -1 if the array does not contain such element.

Common
JVM
JS
Native
1.0
inline fun <T> Iterable<T>.indexOfLast(
    predicate: (T) -> Boolean
): Int

(source)

Returns index of the last element matching the given predicate, or -1 if the collection does not contain such element.

Common
JVM
JS
Native
1.0
inline fun <T> List<T>.indexOfLast(
    predicate: (T) -> Boolean
): Int

(source)

Returns index of the last element matching the given predicate, or -1 if the list does not contain such element.