Offsets the given index by the specified distance, or so that it equals the given limiting index.
A valid index of the collection.
The distance to offset
distancemust not be negative unless the collection conforms to the
A valid index of the collection to use as a limit. If
distance > 0, a limit that is less than
ihas no effect. Likewise, if
distance < 0, a limit that is greater than
ihas no effect.
i has been offset by exactly
distance steps without going beyond
false. When the return value is
false, the value of
i is equal to
The value passed as
distance must not offset
i beyond the bounds of the collection, unless the index passed as
limit prevents offsetting beyond those bounds.