first

Returns the first element.

Throws

if the array is empty.


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

Returns the first element matching the given predicate.

Throws

if no such element is found.