last

fun last(): Vector2I

Returns the last element.

Throws

if the array is empty.


inline fun last(predicate: (Vector2I) -> Boolean): Vector2I

Returns the last element matching the given predicate.

Throws

if no such element is found.