last
fun ByteArray.last(): Byte
fun ShortArray.last(): Short
fun IntArray.last(): Int
fun LongArray.last(): Long
fun FloatArray.last(): Float
fun DoubleArray.last(): Double
fun BooleanArray.last(): Boolean
fun CharArray.last(): Char
@ExperimentalUnsignedTypes fun ULongArray.last(): ULong
@ExperimentalUnsignedTypes fun UByteArray.last(): UByte
@ExperimentalUnsignedTypes fun UShortArray.last(): UShort
inline fun ByteArray.last(predicate: (Byte) -> Boolean): Byte
inline fun ShortArray.last(
predicate: (Short) -> Boolean
): Short
inline fun IntArray.last(predicate: (Int) -> Boolean): Int
inline fun LongArray.last(predicate: (Long) -> Boolean): Long
inline fun FloatArray.last(
predicate: (Float) -> Boolean
): Float
inline fun DoubleArray.last(
predicate: (Double) -> Boolean
): Double
inline fun BooleanArray.last(
predicate: (Boolean) -> Boolean
): Boolean
inline fun CharArray.last(predicate: (Char) -> Boolean): Char
inline fun <T> Iterable<T>.last(predicate: (T) -> Boolean): T
inline fun <T> List<T>.last(predicate: (T) -> Boolean): T
@ExperimentalUnsignedTypes inline fun ULongArray.last(
predicate: (ULong) -> Boolean
): ULong
@ExperimentalUnsignedTypes inline fun UByteArray.last(
predicate: (UByte) -> Boolean
): UByte
@ExperimentalUnsignedTypes inline fun UShortArray.last(
predicate: (UShort) -> Boolean
): UShort
Returns the last element matching the given predicate.
Exceptions
fun <T> Iterable<T>.last(): T
fun <T> List<T>.last(): T