between method

Iterable<T> between(
  1. int start,
  2. int end
)

Implementation

Iterable<T> between(int start, int end) {
  if (start < 0) {
    start = 0;
  }
  int length = start > end ? 0 : (end - start).zeroFillRightShift(0);
  start = start.zeroFillRightShift(0);
  return skip(start).take(length);
}