last

fun last(): Vector2F

Returns the last element.

Throws

if the array is empty.


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

Returns the last element matching the given predicate.

Throws

if no such element is found.