last

fun <T, D : Dimension> MultiArray<T, D>.last(): T

Returns the last element.

Throws

if the collection is empty.


inline fun <T, D : Dimension> MultiArray<T, D>.last(predicate: (T) -> Boolean): T

Returns the last element matching the given predicate.

Throws

if no such element is found.