takeWhile

inline fun takeWhile(predicate: (Vector2I) -> Boolean): List<Vector2I>

Returns a list containing first elements satisfying the given predicate.