first

Returns the first element.

Throws

if the array is empty.


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

Returns the first element matching the given predicate.

Throws

if no such element is found.