inline fun <T> Array<out T>.findLast(
    predicate: (T) -> Boolean
): T?
inline fun ByteArray.findLast(
    predicate: (Byte) -> Boolean
): Byte?
inline fun ShortArray.findLast(
    predicate: (Short) -> Boolean
): Short?
inline fun IntArray.findLast(
    predicate: (Int) -> Boolean
): Int?
inline fun LongArray.findLast(
    predicate: (Long) -> Boolean
): Long?
inline fun FloatArray.findLast(
    predicate: (Float) -> Boolean
): Float?
inline fun DoubleArray.findLast(
    predicate: (Double) -> Boolean
): Double?
inline fun BooleanArray.findLast(
    predicate: (Boolean) -> Boolean
): Boolean?
inline fun CharArray.findLast(
    predicate: (Char) -> Boolean
): Char?
inline fun <T> Iterable<T>.findLast(
    predicate: (T) -> Boolean
): T?
inline fun <T> List<T>.findLast(
    predicate: (T) -> Boolean
): T?

Returns the last element matching the given predicate, or null if no such element was found.

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.