indexOfFirst

inline fun indexOfFirst(predicate: (Vector2I) -> Boolean): Int

Returns index of the first element matching the given predicate, or -1 if the array does not contain such element.