lastOrNull

inline fun lastOrNull(): Vector2F?

Returns the last element, or null if the array is empty.


inline fun lastOrNull(predicate: (Vector2F) -> Boolean): Vector2F?

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