Let\'s say, I have a vec containing a list of integers that may be non-continuous (due to element being removed from database).
vec
Example: