take method

IntRange take(
  1. int count, [
  2. int step = 1
])

Implementation

IntRange take(int count, [int step = 1]) =>
    IntRange(this, this + (count * step), step);