inserted method

PositionSeries inserted(
  1. int index,
  2. Iterable<Position> iterable
)

Returns a position series with iterable of positions inserted at index of this series.

A returned series may point to the same position data as this (however implementations are allowed to make a copy of positions in the range).

Valid queries are such that 0 ≤ index < positionCount.

Implementation

PositionSeries inserted(
  int index,
  Iterable<Position> iterable,
) =>
    rangeReplaced(index, index, iterable);