returns a instance of ArrayList with the key/values from $start to $end

@param int $start
@param int $end
@return ArrayList
192356
public function subList(int $start, int $end): ArrayList {
        $arrayList = new ArrayList();
        if (($start === $end) || ($start > $end)) {
            return $arrayList;
        }
        //TODO preserve keys?
        $array = \array_slice($this->array, $start, $end - $start, true);
        $arrayList->addAllArray($array);
        return $arrayList;
    }
374260
public static String[] subarrayOf
            (final String[] array,
             final int start,
             final int end)
        {
        final int subarraySize = end - start;
        final String[] subarray = new String[subarraySize];

        for (int i = 0; i < subarraySize; ++i)
            {
            subarray[i] = array[i + start];
            }

        return (subarray);
        }
858686
function(start, end) {
      var current = parseInt(start), end = parseInt(end), values = [current]
      if (end > current) while (++current <= end) values.push(current)
      else               while (--current >= end) values.push(current)
      return '[' + values + ']'
    }
702759
public function readLinesBetween(int $start, int $end) : array
    {
        $content = file($this->_path);
        $lines   = [];

        for($i = $start; $i < $end; $i++) {
            if(isset($content[$i])) {
                $lines[] = $content[$i];
            }
        }

        return $lines;
    }
222238
public function relativeToNow($start, $end, $words = array())
	{
		$this->__construct($start, $end);

		if( empty($words) )
		{
			$words['starting'] = 'Starting';
			$words['ending'] = 'Ending';
			$words['ended'] = 'Ended';
 		}

		if ( $this->tense == 'future' )
		{
			return $words['starting'] . ' ' . $this->start->getRelativeDate();
		}

		if ( $this->tense == 'present' )
		{
			return $words['ending'] . ' ' . $this->end->getRelativeDate();
		}

		if ( $this->tense == 'past' )
		{
			return $words['ended'] . ' ' . $this->end->getRelativeDate();
		}
	}
1149166
public function getArea(int $start,int $end) : array
        {
                $len = $this->getLength();
                if($end!='-1' and $end>$len) {
                        throw new \Exception('end > len');
                }
                $response = $this->_redis->lrange($this->_key, $start, $end);
                return !empty($response)?$response:[];
        }
512799
public static function years(int $start = 1980, int $end = 2024) : array
    {
        return Date::_range(1, $start, $end, true);
    }
1130520
public static function match(string $str, string $start, string $end) {
		$start = preg_quote($start);
		$end = preg_quote($end);
		if (preg_match('/' . $start . '(.*)' . $end . '/', $str, $matches)) {
			return $matches[1] . '';
		}
		return false;
	}
935820
public function fill($value, int $start, int $end)
    {
        $list = $this->list;

        foreach ($list as $index => $val) {
            $list[$index] = $index >= $start && $index <= $end ? $value : $val;
        }

        return new static($list);
    }
1176380
public function getBetween($content, $start, $end = null)
    {
        $startIndex = strpos($content, $start) + strlen($start);
        if ($startIndex === false) {
            return false;
        }

        if (!$end) {
            return substr($content, $startIndex);
        }

        $length = strpos($content, $end, $startIndex);
        if ($length === false) {
            return false;
        }

        return substr($content, $startIndex, $length - $startIndex);
    }
971833
public function setIteratorSource(\Iterator $iterator=null, $start=0, $end=-1)
    {
        $this->iteratorstartindex = (int)$start;
        $this->iteratorendindex = (int)$end;
        $this->iterator = $iterator;
    }
94882
public function whereBetween($field, $start, $end)
    {
        $this->prepareWhereBetween($field, $start, $end, 'between');

        return $this;
    }
64224
public function substring($start, $end = null) {
		$length = $this->length();
		if ($end < 0) {
			$end = $length + $end;
		}
		$end = $end !== null ? min($end, $length) : $length;
		$start = min($start, $end);
		$end = max($start, $end);
		$end = $end - $start;

		return new Text(mb_substr($this->string, $start, $end, $this->encoding), $this->encoding);
	}
1215367
public static function abjad($start=0,$end=0){
		$abjadList = [];		
		for($i=65;$i<=90;$i++){
			$abjadList[]=chr($i);
			if($i==90){
				for($j=65;$j<=90;$j++){
					for($k=65;$k<=90;$k++){
						$abjadList[]=chr($j).chr($k);
					}
				}
			}
		}
		
		$abjad = [];
		if($end<$start) $end=$start;
		for($x=$start;$x<=$end;$x++){
			if($x>=702) break;
			$abjad[$x] = $abjadList[$x];
		}
		return $abjad;
	}
565908
public static int[] range(int start, int end) {
    int[] out = new int[end - start];
    for(int i = 0, j = start; j < end; i++, j++) {
      out[i] = j;
    }
    return out;
  }
236719
public function between(DateTime $start, DateTime $end) {
        $this->start($start)
                ->end($end);

        return $this;
    }
599773
public static function getDateTimeRange($start, $end = null, $exact = false)
    {
        return [
            static::buildDateTime($start, !$exact),
            static::buildDateTime($end ?: $start, false, !$exact),
        ];
    }