range abstract method

PositionSeries range(
  1. int start, [
  2. int? end
])

Returns a subseries with positions from start (inclusive) to end (exclusive).

If end is not provided, then all positions from start to end are returned.

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 ≤ start ≤ end ≤ positionCount.

Implementation

PositionSeries range(int start, [int? end]);